instance method
quoted_date
Ruby on Rails 3.2.22.5
Since v2.2.3Signature
quoted_date(value)
No documentation comment.
Parameters
-
valuereq
Source
# File activerecord/lib/active_record/connection_adapters/abstract/quoting.rb, line 102
def quoted_date(value)
if value.acts_like?(:time)
zone_conversion_method = ActiveRecord::Base.default_timezone == :utc ? :getutc : :getlocal
if value.respond_to?(zone_conversion_method)
value = value.send(zone_conversion_method)
end
end
value.to_s(:db)
end
Defined in activerecord/lib/active_record/connection_adapters/abstract/quoting.rb line 102
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::Quoting