Class: Migration::PageLanguage

Inherits:
Object
  • Object
show all
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

Constructor Details

#initializePageLanguage

Returns a new instance of PageLanguage.



10
# File 'lib/migration/page_language.rb', line 10

def initialize; end

Class Method Details

.runObject



6
7
8
# File 'lib/migration/page_language.rb', line 6

def self.run
  new.run
end

Instance Method Details

#runObject



12
13
14
# File 'lib/migration/page_language.rb', line 12

def run
  migrate_pages
end