inossidabile / protector

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

Allow arrays of values in strong params #66

Open CyborgMaster opened 9 years ago

CyborgMaster commented 9 years ago

Allow whitelisting arrays of values in strong params. Let's you write can statements like this:

can :update, selected_features: []