Module: ActiveScaffold::Bridges::Carrierwave::CarrierwaveBridge
- Defined in:
- lib/active_scaffold/bridges/carrierwave/carrierwave_bridge.rb
Instance Method Summary collapse
Instance Method Details
#initialize(model_id) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/active_scaffold/bridges/carrierwave/carrierwave_bridge.rb', line 5 def initialize(model_id) super return unless model.respond_to?(:uploaders) && model.uploaders.present? update.multipart = true create.multipart = true model.uploaders.each_key do |field| configure_carrierwave_field(field.to_sym) end end |