Class: Embryo::RubyTemplate::Controller

Inherits:
Embryo::RubyTemplate show all
Defined in:
lib/rails-embryo/ruby_template/controller.rb

Instance Method Summary collapse

Methods inherited from Embryo::RubyTemplate

#text

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

#pathObject



10
11
12
# File 'lib/rails-embryo/ruby_template/controller.rb', line 10

def path
  "app/controllers/#{@model.plural_path}_controller.rb"
end