Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: da8ee715ae
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (15 sloc) 0.405 kB
# monkey patch for activerecord dependency in Cramp::Model
module Cramp
module Model
module Quoting
def quoted_date(value)
if value.acts_like?(:time)
zone_conversion_method = :getutc # modified line
value.respond_to?(zone_conversion_method) ? value.send(zone_conversion_method) : value
else
value
end.to_s(:db)
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.