Class: OrdinaryCms::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- OrdinaryCms::InstallGenerator
- Defined in:
- lib/generators/ordinary_cms/install/install_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_routes ⇒ Object
16 17 18 19 |
# File 'lib/generators/ordinary_cms/install/install_generator.rb', line 16 def add_routes route %Q{mount Mercury::Engine => '/'} route %Q{mount OrdinaryCms::Engine => '/'} end |
#copy_mercury_config ⇒ Object
12 13 14 |
# File 'lib/generators/ordinary_cms/install/install_generator.rb', line 12 def copy_mercury_config copy_file 'app/assets/javascripts/mercury.js' end |
#generate_activeadmin ⇒ Object
8 9 10 |
# File 'lib/generators/ordinary_cms/install/install_generator.rb', line 8 def generate_activeadmin generate("active_admin:install", name) unless ARGV.include? "--skip-activeadmin" end |