Class: BcmsKcfinder::InstallGenerator

Inherits:
Cms::ModuleInstallation
  • Object
show all
Defined in:
lib/generators/bcms_kcfinder/install/install_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_routesObject

Uncomment to add module specific seed data to a project. def add_seed_data_to_project

copy_file "../bcms_kcfinder.seeds.rb", "db/bcms_kcfinder.seeds.rb"
append_to_file "db/seeds.rb", "load File.expand_path('../bcms_kcfinder.seeds.rb', __FILE__)\n"

end



19
20
21
# File 'lib/generators/bcms_kcfinder/install/install_generator.rb', line 19

def add_routes
  mount_engine(BcmsKcfinder)
end