Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add strong parameters validation #659

Merged
merged 1 commit into from
Dec 19, 2014
Merged

Conversation

jcoyne
Copy link
Member

@jcoyne jcoyne commented Dec 19, 2014

No description provided.

@jcoyne jcoyne force-pushed the sanitize_for_mass_assignment branch from a5b0d8b to 3fd14b7 Compare December 19, 2014 15:41
@jcoyne jcoyne changed the title Add strong parameters validateion Add strong parameters validation Dec 19, 2014
@coveralls
Copy link

Coverage Status

Coverage increased (+0.0%) when pulling 3fd14b7 on sanitize_for_mass_assignment into 6c1d505 on master.

awead added a commit that referenced this pull request Dec 19, 2014
@awead awead merged commit b18c25a into master Dec 19, 2014
@awead awead deleted the sanitize_for_mass_assignment branch December 19, 2014 20:50

context "permitted attributes" do
let(:params) { ProtectedParams.new(first_name: 'Guille', gender: 'm').permit! }
it "cannot be used for mass assignment" do
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/cannot/can/ ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants