Class: CaseForm::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- CaseForm::Generators::InstallGenerator
- Defined in:
- lib/generators/case_form/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_config ⇒ Object
11 12 13 |
# File 'lib/generators/case_form/install_generator.rb', line 11 def copy_config copy_file "case_form.rb", "config/initializers/case_form.rb" end |
#copy_javascripts ⇒ Object
22 23 24 |
# File 'lib/generators/case_form/install_generator.rb', line 22 def copy_javascripts copy_file "javascripts/#{.javascripts}.case_form.js", "public/javascripts/case_form.js" end |
#copy_locales ⇒ Object
26 27 28 29 30 |
# File 'lib/generators/case_form/install_generator.rb', line 26 def copy_locales .locales.each do |l| copy_file "locales/#{l}.yml", "config/locales/case_form/#{l}.yml" end end |
#copy_stylesheets ⇒ Object
15 16 17 18 19 20 |
# File 'lib/generators/case_form/install_generator.rb', line 15 def copy_stylesheets if .stylesheets? copy_file "stylesheets/stylesheet.css", "public/stylesheets/case_form.css" copy_file "stylesheets/stylesheet_changes.css", "public/stylesheets/case_form_changes.css" end end |