Class: Rails::Generators::ConceptGenerator
- Inherits:
-
NamedBase
- Object
- NamedBase
- Rails::Generators::ConceptGenerator
- Defined in:
- lib/rails/generators/concept/concept_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_concept ⇒ Object
12 13 14 |
# File 'lib/rails/generators/concept/concept_generator.rb', line 12 def create_concept template 'concept.rb.erb', File.join('app/concepts', class_path, file_name, 'cell.rb') end |
#create_views ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/rails/generators/concept/concept_generator.rb', line 16 def create_views states.each do |state| @state = state @path = File.join('app/concepts', class_path, file_name, 'views', "#{state}.#{template_engine}") template "view.#{template_engine}", @path end end |