Sha256: 9b4f00a694ffbdd1f7ec8c231d9d9a0210fd2e5cb6e569146edfc686670e6128
Contents?: true
Size: 544 Bytes
Versions: 3
Compression:
Stored size: 544 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
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
ta_by_star-4.1.0 | lib/by_star/kernel/in_time_zone.rb |
ta_by_star-4.0.0 | lib/by_star/kernel/in_time_zone.rb |
by_star-4.0.0 | lib/by_star/kernel/in_time_zone.rb |