rails / protected_attributes

Protect attributes from mass-assignment in ActiveRecord models.
MIT License
228 stars 92 forks source link

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

Open btakita opened 9 years ago

btakita commented 9 years ago

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'