Skip to content
Browse files

Do not set up root route unless --clearance option

Currently creates a root route with Clearance::Sessions#new
regardless of whether the developer asked for it.
  • Loading branch information...
1 parent 8e3b253 commit 834e404ba350cdbea929e928949ea7572e530cbb @croaky croaky committed Jun 18, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/suspenders/generators/app_generator.rb
View
6 lib/suspenders/generators/app_generator.rb
@@ -145,8 +145,10 @@ def copy_miscellaneous_files
end
def setup_root_route
- say "Setting up a root route"
- build(:setup_root_route)
+ if options[:clearance]
+ say "Setting up a root route"
+ build(:setup_root_route)
+ end
end
def set_active_record_whitelist_attributes

0 comments on commit 834e404

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