rails / protected_attributes

Protect attributes from mass-assignment in ActiveRecord models.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stack Trace is not useful when there's an error in process_removed_attributes

btakita opened this issue · comments

I want to know which line in the app causes the error.

  An error occurred in an after hook
    ActiveModel::MassAssignmentSecurity::Error: Can't mass-assign protected attributes for CustomShipMethod: in_store_pickup
    occurred at /home/phoenix/.rbenv/versions/2.2.0/lib/ruby/gems/2.2.0/gems/protected_attributes-1.0.8/lib/active_model/mass_assignment_security/sanitizer.rb:60:in `process_removed_attributes'