Sha256: 4e6b76511c54a85e2e47482db4916b712cb424745d43d82cc9d2bd5fccf7925b
Contents?: true
Size: 1.19 KB
Versions: 6
Compression:
Stored size: 1.19 KB
Contents
require 'rails/generators' module LeadsToHighrise module Generators class InstallGenerator < ::Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) #argument :layout_name, :type => :string, :default => 'application', :banner => 'layout_name' def copy_views copy_file "_form.html.erb", "app/views/leads_to_highrise/lead/_form.html.erb" copy_file "_lead.html.erb", "app/views/leads_to_highrise/lead/_lead.html.erb" copy_file "edit.html.erb", "app/views/leads_to_highrise/lead/edit.html.erb" copy_file "index.html.erb", "app/views/leads_to_highrise/lead/index.html.erb" copy_file "new.html.erb", "app/views/leads_to_highrise/lead/new.html.erb" copy_file "show.html.erb", "app/views/leads_to_highrise/lead/show.html.erb" end def copy_migration copy_file "20140416000345_create_leads_to_highrise_leads.rb", "db/migrate/20140416000345_create_leads_to_highrise_leads.rb" copy_file "20140416021234_add_highrise_site_and_highrise_user_to_user.rb", "db/migrate/20140416021234_add_highrise_site_and_highrise_user_to_user.rb" end def setup_routes route('mount LeadsToHighrise::Engine => "/leads_to_highrise"') end end end end
Version data entries
6 entries across 6 versions & 1 rubygems