Sha256: ae698684fb54ecc9f0da4a8f3b8fa6ff8330551d3405b62ac304993216200c9d
Contents?: true
Size: 528 Bytes
Versions: 17
Compression:
Stored size: 528 Bytes
Contents
module Refinery class <%= extension_plural_class_name %>Generator < Rails::Generators::Base def rake_db rake "refinery_<%= extension_plural_name %>: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 # Added by Refinery CMS <%= namespacing %> extension Refinery::<%= namespacing %>::Engine.load_seed EOH end end end end
Version data entries
17 entries across 17 versions & 1 rubygems