Skip to content
Browse files

[#22] Create less cruft when generating controller

Generating a controller with action is great for generating:

* route
* controller file
* controller spec
* view file and directory

We do not want to generate:

* helper
* helper spec
* Coffeescript file
* Sass file
  • Loading branch information...
1 parent 0c7a3a6 commit da91a2b1ae7b1ac15fc4c7fa2d658f7c31ea8ebc @croaky croaky committed Aug 3, 2012
Showing with 7 additions and 3 deletions.
  1. +7 −3 lib/suspenders/app_builder.rb
View
10 lib/suspenders/app_builder.rb
@@ -70,9 +70,13 @@ def include_custom_gems
def configure_rspec
generators_config = <<-RUBY
- config.generators do |generate|
- generate.test_framework :rspec
- end
+ config.generators do |generate|
+ generate.test_framework :rspec
+ generate.helper false
+ generate.stylesheets false
+ generate.javascript_engine false
+ generate.view_specs false
+ end
RUBY
inject_into_class 'config/application.rb', 'Application', generators_config
end

0 comments on commit da91a2b

Please sign in to comment.
Something went wrong with that request. Please try again.