Skip to content
This repository has been archived by the owner on Aug 17, 2017. It is now read-only.

making always permitted params configurable #174

Closed
wants to merge 1 commit into from
Closed

making always permitted params configurable #174

wants to merge 1 commit into from

Conversation

garysweaver
Copy link

Getting errors related to 'format' not being allowed as a param. Having to permit 'format' everywhere is messy, but I wasn't sure about changing S.P. to always allow format for everyone, since it is a client-supplied param and there may be some valid reason to allow control over permittance of 'format' rather than always permitting it. It seemed that just allowing NEVER_UNPERMITTED_PARAMS to be modifiable would be the best idea, so I converted it into a configuration option, using fewer double negatives ("always_permitted_parameters"). Not sure if that works for everyone or not, so this is really just a conversation starter.

@rafaelfranca
Copy link
Member

Could you open a PR in the rails repository? It is the main entry for new feature on this plugin

@garysweaver
Copy link
Author

@rafaelfranca Sure. rails/rails#12682 Thanks. Should the S.P. issue be left open?

@rafaelfranca
Copy link
Member

Yes. We can merge this PR on this repo too

rafael added a commit to rafael/rails that referenced this pull request Jun 27, 2014
* This commit adds back the always_permitted_parameters
  configuration option to strong paramaters.
* The initial pull requests where this feature was added
  are the following:
  - rails#12682
  - rails/strong_parameters#174
@PikachuEXE
Copy link

still opened?

@garysweaver garysweaver closed this May 1, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants