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

solves ActiveModel::ForbiddenAttributesError with scope in component configuration (rails 4) #158

Merged
merged 1 commit into from
Jan 23, 2015

Conversation

tomg65
Copy link
Contributor

@tomg65 tomg65 commented Jan 16, 2015

Grid ran in an ActiveModel::ForbiddenAttributesError (rails 4 strong parameters) when the component has a scope configured. (config[:scope] will later be merged to the params object that is an ActionController::Parameters object. - As the scope is database related this will be denied with ActiveModel::ForbiddenAttributesError)
solution: convert ActionController::Parameters to a Hash - then the error is gone

related to #159

ran in an ActiveModel::ForbiddenAttributesError (rails 4 strong
parameters) when component has  ascope configured
 solution: in this case convert ActionController::Parameters to a Hash
mxgrn pushed a commit that referenced this pull request Jan 23, 2015
solves ActiveModel::ForbiddenAttributesError with scope in component configuration (rails 4)
@mxgrn mxgrn merged commit 4a28afa into netzke:master Jan 23, 2015
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.

None yet

2 participants