Class: RailsEnvironment
- Inherits:
-
Object
- Object
- RailsEnvironment
- Defined in:
- lib/libisi/environment/rails.rb
Overview
Copyright © 2007-2010 Logintas AG Switzerland
This file is part of Libisi.
Libisi 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 (at your option) any later version.
Libisi 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 Libisi. If not, see <www.gnu.org/licenses/>.
Instance Method Summary collapse
Instance Method Details
#context_object(name, options = {}) ⇒ Object
23 24 25 26 |
# File 'lib/libisi/environment/rails.rb', line 23 def context_object(name, = {}) controller_name = name.camelize + "Controller" eval(controller_name) if defined?(controller_name) end |
#implementation ⇒ Object
21 |
# File 'lib/libisi/environment/rails.rb', line 21 def implementation; :rails; end |
#type ⇒ Object
20 |
# File 'lib/libisi/environment/rails.rb', line 20 def type; :webapplication; end |