Class: Orange::Carton
- Inherits:
-
Object
- Object
- Orange::Carton
- Defined in:
- lib/orange-more/assets/resources/asset_resource.rb
Direct Known Subclasses
SiteCarton, OrangeAsset, OrangeContactForm, OrangeNews, OrangeSite, OrangeUser
Class Method Summary collapse
-
.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.
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 |