You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, to check that the mass assignment of one or more attributes is permitted or forbidden for different actions, we have to declare this as two seperate statements:
But it would be nicer to check that the attribute is permitted with a single statement.
My proposal is that we add a new composite matcher to permit_mass_assignment_of and forbid_mass_assignment_of called for_actions which accepts an array of actions to permit/forbid the atttibute(s) in. E.g.
The spec should pass if and only if all of the listed attributes are permitted for all of the listed actions, or all of the listed attributes are forbidden for all of the listed actions, for the permit_mass_assignment_of and forbid_mass_assignment_of matchers respectively.
The text was updated successfully, but these errors were encountered:
Currently, to check that the mass assignment of one or more attributes is permitted or forbidden for different actions, we have to declare this as two seperate statements:
But it would be nicer to check that the attribute is permitted with a single statement.
My proposal is that we add a new composite matcher to
permit_mass_assignment_of
andforbid_mass_assignment_of
calledfor_actions
which accepts an array of actions to permit/forbid the atttibute(s) in. E.g.or another example:
The spec should pass if and only if all of the listed attributes are permitted for all of the listed actions, or all of the listed attributes are forbidden for all of the listed actions, for the
permit_mass_assignment_of
andforbid_mass_assignment_of
matchers respectively.The text was updated successfully, but these errors were encountered: