-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
make permitted_attributes support action #2356
make permitted_attributes support action #2356
Conversation
a4a3b41
to
ea76c97
Compare
5b04caf
to
36fb3ab
Compare
a913637
to
0034879
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thank you! I have left one comment and I think this should be good to merge soon 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one tiny thing left!
|
||
it "assigns the action name as a string" do | ||
get :index | ||
expect(controller.action_name).to be_a(String) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you also remove this, please? This is standard Rails behaviour and unrelated to this feature, so it doesn't need to be tested. Sorry I missed this yesterday.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want make sure action name is string not symbo, anyway I can remove it
action =
case action
when "update" then "edit"
when "create" then "new"
else action
end
Thank you again! |
* Add GenericRecord field type There was no way to display the StandardsImport associated with a SourceFile, since there wasn't a built-in association between the objects. This adds a new GenericRecord administrate field that display a link to the record. * Fixed editing of StandardsImport The StandardsImport uses custom permitted_params but the latest Administrate release had updated that method to take a parameter thoughtbot/administrate#2356
* Add GenericRecord field type There was no way to display the StandardsImport associated with a SourceFile, since there wasn't a built-in association between the objects. This adds a new GenericRecord administrate field that display a link to the record. * Fixed editing of StandardsImport The StandardsImport uses custom permitted_params but the latest Administrate release had updated that method to take a parameter thoughtbot/administrate#2356
* Add GenericRecord field type There was no way to display the StandardsImport associated with a SourceFile, since there wasn't a built-in association between the objects. This adds a new GenericRecord administrate field that display a link to the record. * Fixed editing of StandardsImport The StandardsImport uses custom permitted_params but the latest Administrate release had updated that method to take a parameter thoughtbot/administrate#2356
* Add GenericRecord field type There was no way to display the StandardsImport associated with a SourceFile, since there wasn't a built-in association between the objects. This adds a new GenericRecord administrate field that display a link to the record. * Fixed editing of StandardsImport The StandardsImport uses custom permitted_params but the latest Administrate release had updated that method to take a parameter thoughtbot/administrate#2356
* Add GenericRecord field type There was no way to display the StandardsImport associated with a SourceFile, since there wasn't a built-in association between the objects. This adds a new GenericRecord administrate field that display a link to the record. * Fixed editing of StandardsImport The StandardsImport uses custom permitted_params but the latest Administrate release had updated that method to take a parameter thoughtbot/administrate#2356
fix #2352 and #2066