Sha256: 084f0b5ffef42515a539b83891c2ef15390f5e95dd31c6cbfbc081a3dca8d716
Contents?: true
Size: 364 Bytes
Versions: 1
Compression:
Stored size: 364 Bytes
Contents
require "seeder_base" class AreaSeeder < SeederBase def initialize(project, names = Rails.configuration.default_area_names) super(target: project, names: names) end def seed_record(name) Area.create project: target, name: name end def self.seed(project, names = Rails.configuration.default_area_names) new(project, names).seed end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
self_systeem-0.1.0 | test/dummy_app/app/services/area_seeder.rb |