Class: Dauft::Generators::ViewGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Dauft::Generators::ViewGenerator
- Defined in:
- lib/dauft/generators/view_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_views ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/dauft/generators/view_generator.rb', line 12 def generate_views full_directory_path = File.join(Dauft.destination, '/', controller_name) actions.each do |action| copy_file "contents/#{template_name}.html.erb", "#{full_directory_path}/#{action}.html.erb" end end |