Sha256: 309501ee7d8dc35fae1c556546995078c0f0cb613322c84dbecb444dcd8f329c

Contents?: true

Size: 564 Bytes

Versions: 1

Compression:

Stored size: 564 Bytes

Contents

module ByStar

  module Kernel

    module InTimeZone
      extend ActiveSupport::Concern

      included do
        if method_defined?(:to_time_in_current_zone) && !method_defined?(:in_time_zone)
          alias_method :in_time_zone, :to_time_in_current_zone
        end
      end
    end
  end
end

::Date.__send__(:include, ByStar::Kernel::InTimeZone)
::Time.__send__(:include, ByStar::Kernel::InTimeZone)
::DateTime.__send__(:include, ByStar::Kernel::InTimeZone)
::ActiveSupport::TimeWithZone.__send__(:include, ByStar::Kernel::InTimeZone)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
by_star-4.0.1 lib/by_star/kernel/in_time_zone.rb