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.
10 |
# File 'lib/migration/page_language.rb', line 10 def initialize; end |
Class Method Details
.run ⇒ Object
6 7 8 |
# File 'lib/migration/page_language.rb', line 6 def self.run new.run end |
Instance Method Details
#run ⇒ Object
12 13 14 |
# File 'lib/migration/page_language.rb', line 12 def run migrate_pages end |