Sha256: a0bbc6a46573e9e0f8bccfcd691c64c96bfb758b3ffbf1bbdba1d7bdadeaa92e
Contents?: true
Size: 526 Bytes
Versions: 10
Compression:
Stored size: 526 Bytes
Contents
module Refinery class <%= extension_plural_class_name %>Generator < Rails::Generators::Base def rake_db rake "refinery_<%= extension_plural_name %>:install:migrations" rake "refinery_settings:install:migrations" end def append_load_seed_data create_file 'db/seeds.rb' unless File.exists?(File.join(destination_root, 'db', 'seeds.rb')) append_file 'db/seeds.rb', :verbose => true do <<-EOH Refinery::<%= namespacing %>::Engine.load_seed EOH end end end end
Version data entries
10 entries across 10 versions & 2 rubygems