Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 30a60ef93d
Fetching contributors…

Cannot retrieve contributors at this time

file 15 lines (15 sloc) 0.405 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
# 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
Something went wrong with that request. Please try again.