Skip to content

Commit

Permalink
Do not set up root route unless --clearance option
Browse files Browse the repository at this point in the history
Currently creates a root route with Clearance::Sessions#new
regardless of whether the developer asked for it.
  • Loading branch information
Dan Croak committed Jun 19, 2012
1 parent 8e3b253 commit 834e404
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/suspenders/generators/app_generator.rb
Expand Up @@ -145,8 +145,10 @@ def copy_miscellaneous_files
end end


def setup_root_route def setup_root_route
say "Setting up a root route" if options[:clearance]
build(:setup_root_route) say "Setting up a root route"
build(:setup_root_route)
end
end end


def set_active_record_whitelist_attributes def set_active_record_whitelist_attributes
Expand Down

0 comments on commit 834e404

Please sign in to comment.