Class: EnrichmentsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/enrichments/enrichments_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_rich_cms_filesObject



9
10
11
12
# File 'lib/generators/enrichments/enrichments_generator.rb', line 9

def generate_rich_cms_files
  generate "rich:authlogic_user", options[:user_model]
  generate "rich:cms_content", options[:content_model]
end

#generate_rich_i18n_filesObject



14
15
16
# File 'lib/generators/enrichments/enrichments_generator.rb', line 14

def generate_rich_i18n_files
  generate "rich:translation", options[:translation_model]
end

#migrateObject



18
19
20
# File 'lib/generators/enrichments/enrichments_generator.rb', line 18

def migrate
  rake "db:migrate" if options[:migrate]
end