Module: ActiveRecord::Acts::Asset::ClassMethods
- Defined in:
- lib/acts_as_asset.rb
Instance Method Summary collapse
Instance Method Details
#acts_as_asset ⇒ Object
8 9 10 11 12 |
# File 'lib/acts_as_asset.rb', line 8 def acts_as_asset has_one :asset, :as => :content, :dependent => :destroy, :class_name => "Asset" accepts_nested_attributes_for :asset include ActiveRecord::Acts::Asset::InstanceMethods end |