Class: OrdinaryCms::InstallGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/ordinary_cms/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_routesObject



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_configObject



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_activeadminObject



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