Class: SequencesController

Inherits:
AdminController show all
Defined in:
app/controllers/sequences_controller.rb

Overview

License

Ekylibre - Simple ERP Copyright (C) 2008-2011 Brice Texier, Thibaud Merigon

This program is free software: you can redistribute it and/or modify it under the terms of the GNU 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 General Public License for more details.

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

Instance Attribute Summary

Attributes inherited from AdminController

#current_user

Instance Method Summary (collapse)

Methods inherited from AdminController

#accessible?, authorized?

Methods inherited from BaseController

#has_notifications?, #human_action_name, human_action_name, #notify, #notify_error, #notify_error_now, #notify_now, #notify_success, #notify_success_now, #notify_warning, #notify_warning_now

Instance Method Details

- (Object) index

Displays the main page with the list of sequences



33
34
# File 'app/controllers/sequences_controller.rb', line 33

def index
end

- (Object) load

Load missing sequences for current company



37
38
39
40
# File 'app/controllers/sequences_controller.rb', line 37

def load
  Sequence.load_defaults
  redirect_to_back
end