Sha256: 9238099b5af4955a3c6381752d44119d500b8ae5917829f43d2ec23137a4202f
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
module Refinery class SettingsGenerator < Rails::Generators::Base def rake_db 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 # Added by Refinery CMS Settings engine Refinery::Settings::Engine.load_seed EOH end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
refinerycms-settings-2.0.0 | lib/refinery/generators/refinery/settings/settings_generator.rb |