inossidabile / protector

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

Code and message of errors #28

Closed Jesterovskiy closed 11 years ago

Jesterovskiy commented 11 years ago

Can we change code and message of invalid state? Because "errors" => [{"code"=>"record_invalid", "message"=>"Base: Access denied to 'name'", "field"=>"base"}] not informative.

inossidabile commented 11 years ago

Your suggestion?

Jesterovskiy commented 11 years ago

@inossidabile need to think about it =)

inossidabile commented 11 years ago

I'll close this for now. Make sure to reopen and post any suggestions you have when you have them :).