inossidabile / protector

Comfortable (seriously) white-list security restrictions for models on a field level
MIT License
270 stars 31 forks source link

StrongParameters integration doesn't work? #52

Closed AlexanderPavlenko closed 10 years ago

AlexanderPavlenko commented 10 years ago
@segment.comments.create(params[:comment]) # raises ActiveModel::ForbiddenAttributesError
@segment.comments.create_with_protector(params[:comment]) # success
inossidabile commented 10 years ago

Look. I told you many times you should stop posting things like this one. I'm not always in context of Protector and no of course I can not expand this into something reasonable to help you. So you either give me more input on your environment or more input on the debug you did.