Sha256: e26c03435994104b034b8fb3d633896c96e4244daaa0039e3da693f1c5edb42a

Contents?: true

Size: 708 Bytes

Versions: 11

Compression:

Stored size: 708 Bytes

Contents

puts "Adding generators... ".magenta

generators = <<GENERATORS

    # Do not generate specs for views and requests. Also, do not generate assets.
    config.generators do |g|
      g.helper false
      g.view_specs false
      g.assets false
      g.integration_tool false
    end
    config.app_generators do |g|
      g.test_framework :rspec
    end

    # Prevent initializing your application and connect to the database on assets precompile.
    config.assets.initialize_on_precompile = false
GENERATORS

in_root do
  inject_into_file 'config/application.rb', generators, {after: "Rails::Application", verbose: false}
end

git :add => 'config/application.rb'
git :commit => "-qm 'Adding generators.'"

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
pah-0.0.12 lib/pah/partials/_generators.rb
pah-0.0.11 lib/pah/partials/_generators.rb
pah-0.0.10 lib/pah/partials/_generators.rb
pah-0.0.9 lib/pah/partials/_generators.rb
pah-0.0.8 lib/pah/partials/_generators.rb
pah-0.0.7 lib/pah/partials/_generators.rb
pah-0.0.6 lib/pah/partials/_generators.rb
pah-0.0.5 lib/pah/partials/_generators.rb
pah-0.0.4 lib/pah/partials/_generators.rb
pah-0.0.3 lib/pah/partials/_generators.rb
pah-0.0.2 lib/pah/partials/_generators.rb