templates/app/controllers/application_controller.rb.erb in cybele-1.9.1 vs templates/app/controllers/application_controller.rb.erb in cybele-1.9.2

- old
+ new

@@ -10,11 +10,11 @@ self.responder = ApplicationResponder respond_to :html, :json # Prevent CSRF attacks by raising an exception. # For APIs, you may want to use :null_session instead. - before_filter :set_audit_user + before_filter :set_audit_user, :set_user_time_zone protect_from_forgery with: :exception def server_error(exception) Rollbar.error "ApplicationController#server_error --exception: #{exception}" render template: 'errors/internal_server_error', status: 500 @@ -25,10 +25,10 @@ end protected def set_user_time_zone - Time.zone = current_user.time_zone if student_signed_in? && current_student.time_zone.present? + Time.zone = current_user.time_zone if user_signed_in? && current_user.time_zone.present? end def devise_parameter_sanitizer if resource_class == User User::ParameterSanitizer.new(User, :user, params) \ No newline at end of file