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

Version Path
refinerycms-forms-2.0.0 lib/generators/refinery/form/templates/lib/generators/refinery/plural_name_generator.rb.erb
refinerycms-forms-1.0.1 lib/generators/refinery/form/templates/lib/generators/refinery/plural_name_generator.rb.erb
refinerycms-forms-1.0.0 lib/generators/refinery/form/templates/lib/generators/refinery/plural_name_generator.rb.erb
refinerycms-core-2.1.5 lib/generators/refinery/form/templates/lib/generators/refinery/plural_name_generator.rb.erb
refinerycms-core-2.1.4 lib/generators/refinery/form/templates/lib/generators/refinery/plural_name_generator.rb.erb
refinerycms-core-2.1.3 lib/generators/refinery/form/templates/lib/generators/refinery/plural_name_generator.rb.erb
refinerycms-core-2.1.2 lib/generators/refinery/form/templates/lib/generators/refinery/plural_name_generator.rb.erb
refinerycms-core-2.1.1 lib/generators/refinery/form/templates/lib/generators/refinery/plural_name_generator.rb.erb
refinerycms-core-2.1.0 lib/generators/refinery/form/templates/lib/generators/refinery/plural_name_generator.rb.erb
refinerycms-core-2.0.10 lib/generators/refinery/form/templates/lib/generators/refinery/plural_name_generator.rb.erb