Skip to content

Commit

Permalink
use 'use_zone' method in example, instead of reimplementing it
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Kuźma committed Jul 10, 2012
1 parent 9650d95 commit 897f8f5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions activesupport/lib/active_support/core_ext/time/zones.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ def zone
# around_filter :set_time_zone
#
# def set_time_zone
# old_time_zone = Time.zone
# Time.zone = current_user.time_zone if logged_in?
# yield
# ensure
# Time.zone = old_time_zone
# if logged_in?
# Time.use_zone(current_user.time_zone) { yield }
# else
# yield
# end
# end
# end
def zone=(time_zone)
Expand Down

0 comments on commit 897f8f5

Please sign in to comment.