Class: Chimpactions::Generators::CustomizeGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Includes:
Rails::Generators::Migration
Defined in:
lib/generators/chimpactions/customize/customize_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_viewsObject



8
9
10
11
12
13
14
15
16
# File 'lib/generators/chimpactions/customize/customize_generator.rb', line 8

def copy_views
  # Views template 
    copy_file "index.html.erb", "app/views/chimpactions/index.html.erb"
    copy_file "edit.html.erb", "app/views/chimpactions/edit.html.erb"
    copy_file "new.html.erb", "app/views/chimpactions/new.html.erb"
    copy_file "_form.html.erb", "app/views/chimpactions/_form.html.erb"
    copy_file "_errors.html.erb", "app/views/chimpactions/_errors.html.erb"
    copy_file "webhooks.html.erb", "app/views/chimpactions/webhooks.html.erb"
end