Sha256: 5cf180b25a77f198ca1cfb07bc1d36d08bf0ff6392b57cede81c20105f9cae3f
Contents?: true
Size: 274 Bytes
Versions: 2
Compression:
Stored size: 274 Bytes
Contents
module Temporal module ControllerAdditions def self.included(base) base.send(:before_filter, :set_time_zone) end def set_time_zone Time.zone = ActiveSupport::TimeZone.new(cookies[:timezone]) || Rails.application.config.time_zone end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
temporal-rails-0.2.1 | lib/temporal/controller_additions.rb |
temporal-rails-0.2.0 | lib/temporal/controller_additions.rb |