Class: EnrichmentsGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- EnrichmentsGenerator
- Defined in:
- lib/generators/enrichments/enrichments_generator.rb
Instance Method Summary collapse
Instance Method Details
#generate_rich_cms_files ⇒ Object
9 10 11 12 |
# File 'lib/generators/enrichments/enrichments_generator.rb', line 9 def generate_rich_cms_files generate "rich:authlogic_user", [:user_model] generate "rich:cms_content", [:content_model] end |
#generate_rich_i18n_files ⇒ Object
14 15 16 |
# File 'lib/generators/enrichments/enrichments_generator.rb', line 14 def generate_rich_i18n_files generate "rich:translation", [:translation_model] end |
#migrate ⇒ Object
18 19 20 |
# File 'lib/generators/enrichments/enrichments_generator.rb', line 18 def migrate rake "db:migrate" if [:migrate] end |