Class: Tama::Controllers::ControllerFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/controllers/controller.rb

Class Method Summary collapse

Class Method Details

.create_controller(*args) ⇒ Object



61
62
63
64
65
66
67
# File 'lib/controllers/controller.rb', line 61

def self.create_controller(*args)
  case 
    when args.first == :test || args.first == "test" then
      TamaTestController.new
    else TamaController.new(*args)
  end
end