Class: BlockpileGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/blockpile/blockpile_generator.rb

Instance Method Summary collapse

Instance Method Details

#generateObject



5
6
7
8
# File 'lib/generators/blockpile/blockpile_generator.rb', line 5

def generate
  template "blockpile.rb", "app/helpers/#{file_name}_pile.rb"
  copy_file "blockpile.html.erb", "app/views/shared/_#{file_name}.html.erb"
end