instance method
to_boolean!
Ruby on Rails 7.2.3
Since v7.2.3 PrivateSignature
to_boolean!(configuration_hash, key)
No documentation comment.
Parameters
-
configuration_hashreq -
keyreq
Source
# File activerecord/lib/active_record/database_configurations/url_config.rb, line 61
def to_boolean!(configuration_hash, key)
if configuration_hash[key].is_a?(String)
configuration_hash[key] = configuration_hash[key] != "false"
end
end
Defined in activerecord/lib/active_record/database_configurations/url_config.rb line 61
· View on GitHub
· Improve this page
· Find usages on GitHub