Class: Lolita::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Lolita::Generators::InstallGenerator
- Defined in:
- lib/generators/lolita/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_initializer ⇒ Object
7 8 9 |
# File 'lib/generators/lolita/install_generator.rb', line 7 def copy_initializer template "lolita.rb", "config/initializers/lolita.rb" unless File.exist?(Rails.root + "config/initializers/lolita.rb") end |
#copy_tinymce ⇒ Object
11 12 13 |
# File 'lib/generators/lolita/install_generator.rb', line 11 def copy_tinymce template "tinymce.yml", "config/tinymce.yml" unless File.exist?(Rails.root + "config/tinymce.yml") end |