Module: Extensions::Attachable::ActionController::Base

Defined in:
lib/extensions/attachable/action_controller/base.rb

Instance Method Summary collapse

Instance Method Details

#attachments_paramsHash Also known as: attachment_params

Permit attachments params in strong parameters.


5
6
7
# File 'lib/extensions/attachable/action_controller/base.rb', line 5

def attachments_params
  [:file, files: []]
end