Class: TmlRails::ToolsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- TmlRails::ToolsController
- Defined in:
- app/controllers/tml_rails/tools_controller.rb
Instance Method Summary collapse
Instance Method Details
#upgrade ⇒ Object
35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'app/controllers/tml_rails/tools_controller.rb', line 35 def upgrade if Tml.config.invalidator[:auth].is_a?(Proc) = Tml.config.invalidator[:auth].call(request) else = params[:access_token] == Tml.config.access_token end if Tml.cache.upgrade_version end redirect_back end |