Module: CarrierWave::DataMapper
- Includes:
- Mount
- Defined in:
- lib/carrierwave/orm/datamapper.rb
Instance Method Summary collapse
Methods included from Mount
Instance Method Details
#after_mount(column, uploader) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/carrierwave/orm/datamapper.rb', line 8 def after_mount(column, uploader) alias_method :read_uploader, :attribute_get alias_method :write_uploader, :attribute_set before :save do send("store_#{column}!") end end |