Class: ComfortableMexicanLoveseat::Fixture::Importer
- Inherits:
-
ComfortableMexicanSofa::Fixture::Importer
- Object
- ComfortableMexicanSofa::Fixture::Importer
- ComfortableMexicanLoveseat::Fixture::Importer
- Defined in:
- lib/comfortable_mexican_loveseat/fixture.rb
Instance Method Summary collapse
-
#initialize(from, to = from, force_import = false, locale = I18n.default_locale) ⇒ Importer
constructor
A new instance of Importer.
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 |