Module: UffizziCore::MassAssignmentControlConcern

Extended by:
ActiveSupport::Concern
Included in:
ApplicationForm
Defined in:
app/forms/uffizzi_core/mass_assignment_control_concern.rb

Instance Method Summary collapse

Instance Method Details

#assign_attributes(attrs = ActionController::Parameters.new) ⇒ Object



16
17
18
19
20
21
# File 'app/forms/uffizzi_core/mass_assignment_control_concern.rb', line 16

def assign_attributes(attrs = ActionController::Parameters.new)
  attrs = ActionController::Parameters.new if attrs.nil?

  new_attrs = attrs.permit(*self.class._args)
  super(new_attrs)
end