examples/galena/spec/seed.rb
def migrate(row, migrated)
      super
      # Match the site by name. Account for uniquification by a partial match, e.g.
      # 'Galena_Hospital_41893443' matches the site named 'Galena Hospital'.
      tmpl = TEMPLATES.detect { |site| name[site.name.gsub('_', ' ')] }
      # merge the default mandatory attribute values
      if tmpl then merge(tmpl, mandatory_attributes) end
    end
def migrate(row, migrated)
      super
      # Match the site by name. Account for uniquification by a partial match, e.g.
      # 'Galena_Hospital_41893443' matches the site named 'Galena Hospital'.
      tmpl = TEMPLATES.detect { |site| name[site.name.gsub('_', ' ')] }
      # merge the default mandatory attribute values
      if tmpl then merge(tmpl, mandatory_attributes) end
    end
def migrate ( row , migrated ) super # Match the site by name. Account for uniquification by a partial match, e.g. # 'Galena_Hospital_41893443' matches the site named 'Galena Hospital'. tmpl = TEMPLATES . detect { | site | name [ site . name . gsub ( '_' , ' ' ) ] } # merge the default mandatory attribute values if tmpl then merge ( tmpl , mandatory_attributes ) end end
Augments +Jinx::Migratable.migrate+ for the example by merging the content of the
 {Galena::Seed} site which matches on this Site's name, if any.

 @param (see Jinx::Migratable#migrate)
Augments + Jinx :: Migratable . migrate + for the example by merging the content of the { Galena :: Seed } site which matches on this Site s name if any .