instance method
validate_arg_hash
Ruby on Rails 5.2.8.1
Since v5.2.8.1 Last seen in v5.2.8.1 PrivateSignature
validate_arg_hash(argument)
No documentation comment.
Parameters
-
argumentreq
Source
# File activestorage/app/models/active_storage/variation.rb, line 134
def validate_arg_hash(argument)
argument.each do |key, value|
validate_arg_string(key)
if value.is_a?(Integer) || value.is_a?(Float)
next
elsif value.is_a?(String) || value.is_a?(Symbol)
validate_arg_string(value)
elsif value.is_a?(Array)
validate_arg_array(value)
elsif value.is_a?(Hash)
validate_arg_hash(value)
end
end
end
Defined in activestorage/app/models/active_storage/variation.rb line 134
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveStorage::Variation