Class: Rails::Generators::BluePrintGenerator
- Inherits:
-
BluePrint::Generators::Base
- Object
- NamedBase
- BluePrint::Generators::Base
- Rails::Generators::BluePrintGenerator
- Defined in:
- lib/generators/rails/blue_print_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_behavior_files ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/generators/rails/blue_print_generator.rb', line 20 def create_behavior_files each_with_role do |role| template 'role.rb', File.join( 'app/blue_prints', class_path, "#{file_name}_context", "#{role.downcase}.rb" ) end end |
#create_context_file ⇒ Object
14 15 16 17 18 |
# File 'lib/generators/rails/blue_print_generator.rb', line 14 def create_context_file template 'context.rb', File.join( 'app/blue_prints', class_path, "#{file_name}_context.rb" ) end |