Sha256: 15c953e968559d7b967307b2646bf064a7570ff6728ff1e1489aa48ac399aa6f

Contents?: true

Size: 343 Bytes

Versions: 13

Compression:

Stored size: 343 Bytes

Contents

require 'rails/generators'

module CurationConcerns
  class SampleDataGenerator < Rails::Generators::Base
    source_root File.expand_path('../templates', __FILE__)

    desc 'This generator copies over a file that creates sample data via `rake db:seed`'
    def copy_sample_data
      copy_file 'db/seeds.rb', 'db/seeds.rb'
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
curation_concerns-1.7.8 lib/generators/curation_concerns/sample_data_generator.rb
curation_concerns-1.7.7 lib/generators/curation_concerns/sample_data_generator.rb
curation_concerns-2.0.0 lib/generators/curation_concerns/sample_data_generator.rb
curation_concerns-2.0.0.rc2 lib/generators/curation_concerns/sample_data_generator.rb
curation_concerns-1.7.6 lib/generators/curation_concerns/sample_data_generator.rb
curation_concerns-1.7.5 lib/generators/curation_concerns/sample_data_generator.rb
curation_concerns-1.7.4 lib/generators/curation_concerns/sample_data_generator.rb
curation_concerns-1.7.3 lib/generators/curation_concerns/sample_data_generator.rb
curation_concerns-1.7.2 lib/generators/curation_concerns/sample_data_generator.rb
curation_concerns-2.0.0.rc1 lib/generators/curation_concerns/sample_data_generator.rb
curation_concerns-1.7.1 lib/generators/curation_concerns/sample_data_generator.rb
curation_concerns-1.7.0 lib/generators/curation_concerns/sample_data_generator.rb
curation_concerns-1.7.0.beta1 lib/generators/curation_concerns/sample_data_generator.rb