Sha256: 6e983f05afd84332843ebf5644f7c34011154d35b372ab89a330a2f654ff9f72

Contents?: true

Size: 413 Bytes

Versions: 16

Compression:

Stored size: 413 Bytes

Contents

module Refinery
  class StoresGenerator < Rails::Generators::Base

    def rake_db
      rake("refinery_stores: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::Stores::Engine.load_seed
        EOH
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
refinerycms-stores-0.1.0 lib/generators/refinery/stores_generator.rb
refinerycms-stores-0.0.16 lib/generators/refinery/stores_generator.rb
refinerycms-stores-0.0.14 lib/generators/refinery/stores_generator.rb
refinerycms-stores-0.0.13 lib/generators/refinery/stores_generator.rb
refinerycms-stores-0.0.12 lib/generators/refinery/stores_generator.rb
refinerycms-stores-0.0.11 lib/generators/refinery/stores_generator.rb
refinerycms-stores-0.0.10 lib/generators/refinery/stores_generator.rb
refinerycms-stores-0.0.9 lib/generators/refinery/stores_generator.rb
refinerycms-stores-0.0.8 lib/generators/refinery/stores_generator.rb
refinerycms-stores-0.0.7 lib/generators/refinery/stores_generator.rb
refinerycms-stores-0.0.6 lib/generators/refinery/stores_generator.rb
refinerycms-stores-0.0.5 lib/generators/refinery/stores_generator.rb
refinerycms-stores-0.0.4 lib/generators/refinery/stores_generator.rb
refinerycms-stores-0.0.3 lib/generators/refinery/stores_generator.rb
refinerycms-stores-0.0.2 lib/generators/refinery/stores_generator.rb
refinerycms-stores-0.0.1 lib/generators/refinery/stores_generator.rb