Class: Coalla::Cms::FileUploads::InstallGenerator
- Inherits:
-
ActiveRecord::Generators::Base
- Object
- ActiveRecord::Generators::Base
- Coalla::Cms::FileUploads::InstallGenerator
- Defined in:
- lib/generators/coalla/cms/file_uploads/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_files ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/generators/coalla/cms/file_uploads/install_generator.rb', line 13 def copy_files migration_template "migration.rb", "db/migrate/create_file_upload.rb" #if options.copy? # [ 'app/views/admin/lookups/_form.html.haml', # 'app/views/admin/lookups/edit.html.haml', # 'app/views/admin/lookups/index.html.haml', # 'app/views/admin/lookups/new.html.haml', # 'app/views/admin/lookups/show.html.haml', # 'app/controllers/admin/lookups_controller.rb', # 'app/models/lookup.rb', # 'app/helpers/lookup_helper.rb' # ].each do |path| # copy_file path, path # end #end end |