action_on_unpermitted_parameters is present
This was a suggestion of @carlosantoniodasilva, thanks!
Grep already yields the matching keys to the given block.
cc1c3c5 Now instead of raise, we log by default in development and test
… See the discussion on rails/strong_parameters#75.
* core_ext/object/blank * concern * core_ext/class/attribute * deprecation
Also changed the exception to UnpermittedParameters
…s are provided.
I was trying to use those files without Rails and that require was missing.
Sometimes, on Mac OS X, programmers accidentally press Option+Space rather than just Space and don’t see the difference. The problem is that Option+Space writes a non-breaking space (0XA0) rather than a normal space (0x20). This commit removes all the non-breaking spaces inadvertently introduced in the comments of the code.
It's only possible to inherit from ActiveRecord::Base and not include it.
There is no need to expose this accessor since we already have the query method #permitted? that should handle this purpose.
… skip]" This reverts commit cd17ee5. Reason: Let's note that this is discouraged, not remove the docs [ci skip]