Class: PublicController

Inherits:
BaseController show all
Defined in:
app/controllers/public_controller.rb

Overview

License

Ekylibre - Simple agricultural ERP Copyright (C) 2009-2013 Brice Texier

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License along with this program. If not, see <www.gnu.org/licenses/>.

Instance Attribute Summary

Attributes inherited from ApplicationController

#current_theme

Instance Method Summary collapse

Methods inherited from ApplicationController

#after_sign_in_path_for, #authorized?, human_action_name, #human_action_name

Instance Method Details

#indexObject


20
21
22
23
24
25
26
# File 'app/controllers/public_controller.rb', line 20

def index
  if current_user
    redirect_to(backend_root_path)
  else
    redirect_to(new_user_session_path)
  end
end