Class: Migration::PageLanguage
- Inherits:
-
Object
- Object
- Migration::PageLanguage
- Defined in:
- lib/migration/page_language.rb
Overview
This migration sets the Spotlight::Page locale to the I18n.default_locale. Needed for migrating Exhibits to internationalization work.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ PageLanguage
constructor
A new instance of PageLanguage.
- #run ⇒ Object
Constructor Details
#initialize ⇒ PageLanguage
Returns a new instance of PageLanguage.
12 |
# File 'lib/migration/page_language.rb', line 12 def initialize; end |
Class Method Details
.run ⇒ Object
8 9 10 |
# File 'lib/migration/page_language.rb', line 8 def self.run new.run end |
Instance Method Details
#run ⇒ Object
14 15 16 |
# File 'lib/migration/page_language.rb', line 14 def run migrate_pages end |