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.



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

def initialize; end

Class Method Details

.runObject



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

def self.run
  new.run
end

Instance Method Details

#runObject



14
15
16
# File 'lib/migration/page_language.rb', line 14

def run
  migrate_pages
end