Skip to content

Commit 03b4637

Browse files
committed
improve method set_time_zone.
1 parent 8a00962 commit 03b4637

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,6 @@ def #{s}!(redirect_url: nil)
6060

6161
private
6262
def set_time_zone
63-
Time.zone = current_user.time_zone if current_user and current_user.time_zone.present?
63+
Time.zone = current_user.time_zone if current_user&.time_zone&.present?
6464
end
6565
end

0 commit comments

Comments
 (0)