ソースを参照

removed timezone from application.rb

jose miguel 7 年 前
コミット
3edc388764
2 ファイル変更1 行追加4 行削除
  1. 1 1
      app/controllers/application_controller.rb
  2. 0 3
      config/application.rb

+ 1 - 1
app/controllers/application_controller.rb

@@ -9,7 +9,7 @@ class ApplicationController < ActionController::Base
   end
 
   before_filter :set_pos_config
-  # around_filter :user_time_zone, :if => :set_pos_config
+  around_filter :user_time_zone, if: :set_pos_config
 
   protect_from_forgery with: :exception
 

+ 0 - 3
config/application.rb

@@ -33,8 +33,5 @@ module Pos
     config.usertypes_for_manager = {
       "Caja" => "C"
     }
-
-    config.time_zone = 'Mazatlan'
-    config.active_record.default_timezone = :local
   end
 end