switch off lock method in application_controller.rb