Sha256: 6553c01590983409a3eff0996aa739f15ec554418612c7a25dd20d088b7c2d31
Contents?: true
Size: 585 Bytes
Versions: 2
Compression:
Stored size: 585 Bytes
Contents
require 'rails/generators' module LeadsToHighrise module Generators class ViewsGenerator < ::Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def copy_views copy_file "views/_form.html.erb", "app/views/leads/_form.html.erb" copy_file "views/edit.html.erb", "app/views/leads/edit.html.erb" copy_file "views/index.html.erb", "app/views/leads/index.html.erb" copy_file "views/new.html.erb", "app/views/leads/new.html.erb" copy_file "views/show.html.erb", "app/views/leads/show.html.erb" end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
leads_to_highrise-0.3.19 | lib/generators/leads_to_highrise/views_generator.rb |
leads_to_highrise-0.3.18 | lib/generators/leads_to_highrise/views_generator.rb |