Sha256: 434efaad0ac3b6dac9eab376d80430135c6b6118cd29b0cf7e4862ded68cef98

Contents?: true

Size: 489 Bytes

Versions: 1

Compression:

Stored size: 489 Bytes

Contents

require 'active_support/core_ext/module/aliasing'
require 'active_record/connection_adapters/abstract/schema_definitions'

module ActiveRecord
  module ConnectionAdapters
    class Column
      class << self
        def string_to_dummy_time_with_time_of_day(string)
          t = string_to_dummy_time_without_time_of_day(string)
          t.respond_to?(:time_of_day) ? t.time_of_day : t
        end
        alias_method_chain :string_to_dummy_time, :time_of_day
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
time_of_day-0.1.1 lib/time_of_day/ext/active_record.rb