Class: Embryo::RubyTemplate::Controller
- Inherits:
-
Embryo::RubyTemplate
- Object
- Embryo::RubyTemplate
- Embryo::RubyTemplate::Controller
- Defined in:
- lib/rails-embryo/ruby_template/controller.rb
Instance Method Summary collapse
-
#initialize(model, action_templates) ⇒ Controller
constructor
A new instance of Controller.
- #path ⇒ Object
Methods inherited from Embryo::RubyTemplate
Constructor Details
#initialize(model, action_templates) ⇒ Controller
Returns a new instance of Controller.
5 6 7 8 |
# File 'lib/rails-embryo/ruby_template/controller.rb', line 5 def initialize(model, action_templates) @model = model @action_templates = action_templates end |
Instance Method Details
#path ⇒ Object
10 11 12 |
# File 'lib/rails-embryo/ruby_template/controller.rb', line 10 def path "app/controllers/#{@model.plural_path}_controller.rb" end |