Sha256: 97e73c7fb65ae700abe433ac7c9a1035b935ef6b2c4d680fd7a092e6b0a0f874
Contents?: true
Size: 450 Bytes
Versions: 1
Compression:
Stored size: 450 Bytes
Contents
module ByStar module Kernel module Date extend ActiveSupport::Concern included do # Shim to alias Rails 3 #to_time_in_current_zone to Rails 4 name #in_time_zone 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::Date)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
by_star-2.2.1 | lib/by_star/kernel/date.rb |