소스 검색

Only set time zone if not already set

Andrew Kane 9 년 전
부모
커밋
1d96fdbd1f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lib/blazer/engine.rb

+ 1 - 1
lib/blazer/engine.rb

@@ -6,7 +6,7 @@ module Blazer
       # use a proc instead of a string
       app.config.assets.precompile << proc { |path| path =~ /\Ablazer\/application\.(js|css)\z/ }
 
-      Blazer.time_zone = Time.zone
+      Blazer.time_zone ||= Time.zone
     end
   end
 end