Class: FriendlyIdGlobalizeGenerator
- Inherits:
-
ActiveRecord::Generators::Base
- Object
- ActiveRecord::Generators::Base
- FriendlyIdGlobalizeGenerator
- Defined in:
- lib/generators/friendly_id_globalize_generator.rb
Overview
This generator adds a migration for the FriendlyId::History addon.
Instance Method Summary collapse
-
#copy_files ⇒ Object
Copies the migration template to db/migrate.
Instance Method Details
#copy_files ⇒ Object
Copies the migration template to db/migrate.
16 17 18 19 |
# File 'lib/generators/friendly_id_globalize_generator.rb', line 16 def copy_files return if ['skip-migration'] migration_template 'migration.rb', 'db/migrate/add_locale_to_friendly_id_slugs.rb' end |