Skip to content
This repository
Browse code

Swapped order of operations in title, fixes strange 'true' being prin…

…ted to the screen in Rails 3.0.9
  • Loading branch information...
commit 7b963f6796b6d801d26500cb5cfc389c2c54c7af 1 parent 0d37edf
Walter Lee Davis walterdavis authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  rails_generators/nifty_layout/templates/helper.rb
2  rails_generators/nifty_layout/templates/helper.rb
@@ -4,8 +4,8 @@
4 4 # helper :layout
5 5 module LayoutHelper
6 6 def title(page_title, show_title = true)
7   - @content_for_title = page_title.to_s
8 7 @show_title = show_title
  8 + @content_for_title = page_title.to_s
9 9 end
10 10
11 11 def show_title?

0 comments on commit 7b963f6

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