Class: Orange::Carton

Inherits:
Object
  • Object
show all
Defined in:
lib/orange-more/assets/resources/asset_resource.rb

Class Method Summary collapse

Class Method Details

.asset(name, opts = {}) ⇒ Object

Define a helper for input type=“text” type database stuff Show in a context if wrapped in one of the helpers



6
7
8
# File 'lib/orange-more/assets/resources/asset_resource.rb', line 6

def self.asset(name, opts = {})
  add_scaffold(name, :asset, Integer, opts.with_defaults(:lazy => true))
end