Sha256: 748fdf4433a27e02dfee4fa0bd88f2e9c7c0bd8571c92363cbd747ef08960971
Contents?: true
Size: 768 Bytes
Versions: 7
Compression:
Stored size: 768 Bytes
Contents
module Refinery class InquiriesGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def generate_inquiries_initializer template 'config/initializers/refinery/inquiries.rb.erb', File.join(destination_root, 'config', 'initializers', 'refinery', 'inquiries.rb') end def rake_db rake("refinery_inquiries: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 # Added by Refinery CMS Inquiries engine Refinery::Inquiries::Engine.load_seed EOH end end end end
Version data entries
7 entries across 7 versions & 1 rubygems