Sha256: 313e21e5dd70087810ef0e0614674169059022ddaf194c588c503f0c9319029a

Contents?: true

Size: 441 Bytes

Versions: 4

Compression:

Stored size: 441 Bytes

Contents

require_dependency "aliada_webapp_rails/application_controller"

module AliadaWebappRails
  class HomeController < ApplicationController
    before_action :do_actions

    def do_actions
      if current_user
        if current_user.respond_to?(:jwt) && current_user.jwt
          @jwt = current_user.jwt
        end

        if current_user.has_services?
          redirect_to '/servicios-proximos'
        end
      end
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
aliada_webapp_rails-1.1.2 app/controllers/aliada_webapp_rails/home_controller.rb
aliada_webapp_rails-1.1.1 app/controllers/aliada_webapp_rails/home_controller.rb
aliada_webapp_rails-1.1.0 app/controllers/aliada_webapp_rails/home_controller.rb
aliada_webapp_rails-1.0.0 app/controllers/aliada_webapp_rails/home_controller.rb