Class: PodLegal::Generators::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/pod_legal/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_routesObject



24
25
26
# File 'lib/generators/pod_legal/install_generator.rb', line 24

def add_routes
  route "mount PodLegal::Engine => '/legal'"
end

#copy_viewsObject



28
29
30
31
# File 'lib/generators/pod_legal/install_generator.rb', line 28

def copy_views
  copy_file "terms.html.haml", "app/views/pod_legal/legal/terms.html.haml", :skip => true
  copy_file "privacy.html.haml", "app/views/pod_legal/legal/privacy.html.haml", :skip => true
end