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

Added a permission form that supports destroy and id. Fixes #67 #68

Merged
merged 1 commit into from
Jan 20, 2015

Conversation

jcoyne
Copy link
Member

@jcoyne jcoyne commented Jan 20, 2015

No description provided.

end

describe "model_attributes" do
let(:params) { ActionController::Parameters.new(title: [''], creator: 'bob', description: ['huh'], permissions_attributes: {'0' => { id: '123', _destroy: 'true' }}) }
Copy link
Contributor

Choose a reason for hiding this comment

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

Why are you setting description when you do not check for it?

Copy link
Member Author

Choose a reason for hiding this comment

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

we're checking that it's removed, because its not an authorized attribute.

carolyncole added a commit that referenced this pull request Jan 20, 2015
Added a permission form that supports destroy and id. Fixes #67
@carolyncole carolyncole merged commit 08e7ae0 into master Jan 20, 2015
@jcoyne jcoyne deleted the permission_form branch January 21, 2016 17:37
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.

2 participants