instance method
permitted_scalar?
Ruby on Rails 4.0.13
Since v4.0.13 PrivateSignature
permitted_scalar?(value)
No documentation comment.
Parameters
-
valuereq
Source
# File actionpack/lib/action_controller/metal/strong_parameters.rb, line 413
def permitted_scalar?(value)
PERMITTED_SCALAR_TYPES.any? {|type| value.is_a?(type)}
end
Defined in actionpack/lib/action_controller/metal/strong_parameters.rb line 413
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::Parameters