Class: BrowserCms::Generators::CmsGenerator
- Defined in:
- lib/generators/browser_cms/cms/cms_generator.rb
Overview
For creating a new BrowserCMS project (Used in conjunction with the blank, demo and module templates.
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#copy_migrations_and_custom_js_files ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/generators/browser_cms/cms/cms_generator.rb', line 16 def copy_migrations_and_custom_js_files files_to_copy = [ # For FCKEditor customization. Not sure this is even necessary anymore 'public/site/customconfig.js', # Migrations/seed data 'db/migrate/20080815014337_browsercms_3_0_0.rb', 'db/migrate/20091109175123_browsercms_3_0_5.rb', 'db/migrate/20100705083859_browsercms_3_3_0.rb', 'db/seeds.rb' ] files_to_copy.each do |file| copy_file file, file end end |
#enable_static_asset_serving ⇒ Object
9 10 11 12 13 14 |
# File 'lib/generators/browser_cms/cms/cms_generator.rb', line 9 def enable_static_asset_serving application do code = "# BrowserCMS should serve static CMS assets (js, css, images) from the Gem\n" code = code + "config.serve_static_assets = true" end end |