Sha256: f745e30020ed836bbd656cd3db1627a8c1b448fbc4023320cdbd63da53ec6a78

Contents?: true

Size: 229 Bytes

Versions: 6

Compression:

Stored size: 229 Bytes

Contents

if defined?(ActiveRecord) || defined?(DataMapper)
  desc 'Load the seed data from db/seeds.rb'
  task :seed => :environment do
    seed_file = Padrino.root('db', 'seeds.rb')
    load(seed_file) if File.exist?(seed_file)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
padrino-gen-0.9.1 lib/padrino-gen/padrino-tasks/seed.rb
padrino-gen-0.9.0 lib/padrino-gen/padrino-tasks/seed.rb
padrino-gen-0.8.5 lib/padrino-gen/padrino-tasks/seed.rb
padrino-gen-0.8.4 lib/padrino-gen/padrino-tasks/seed.rb
padrino-gen-0.8.3 lib/padrino-gen/padrino-tasks/seed.rb
padrino-gen-0.8.2 lib/padrino-gen/padrino-tasks/seed.rb