Class: ComfortableMexicanLoveseat::Fixture::Importer

Inherits:
ComfortableMexicanSofa::Fixture::Importer
  • Object
show all
Defined in:
lib/comfortable_mexican_loveseat/fixture.rb

Instance Method Summary collapse

Constructor Details

#initialize(from, to = from, force_import = false, locale = I18n.default_locale) ⇒ Importer

Returns a new instance of Importer.



3
4
5
6
# File 'lib/comfortable_mexican_loveseat/fixture.rb', line 3

def initialize(from, to = from, force_import = false, locale = I18n.default_locale)
  super(from, to, force_import)
  self.site = Comfy::Cms::Site.find_or_create_by(:identifier => to, :locale => locale)
end