Class: Dossier::ViewsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/dossier/views/views_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_viewObject



7
8
9
# File 'lib/generators/dossier/views/views_generator.rb', line 7

def generate_view
  template "show.html.haml", Rails.root.join("app/" "views/" "dossier/reports/#{report_name}.html.haml")
end