Sha256: ca3ff88ae75d5d84cde22ebce01ede2eceb3b5633ebdface87b79d0e6e8168b0

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 Bytes

Contents

module ErpApp
  class LoginController < ApplicationController
    layout :nil

    def index
      if session[:return_to_url]
        if session[:return_to_url].include? 'erp_app/desktop'
          @app_container = '/erp_app/desktop/'
        else
          @app_container = '/erp_app/organizer/'
        end
      else
        if params[:application] == 'desktop'
          @app_container = '/erp_app/desktop/'
        else
          @app_container = '/erp_app/organizer/'
        end
      end

    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
erp_app-4.0.0 app/controllers/erp_app/login_controller.rb