Browse files

Remove hidden special character

This stray character was causing a bit of gotcha but this was causing "Undefined method new for Proc" in Ruby 2.0.
  • Loading branch information...
1 parent 95da568 commit 9b323f1e9e625fd1d17cb0aa223fbfc7c405c600 @stefl stefl committed Jul 22, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 generators/navigation_config/templates/config/navigation.rb
@@ -60,7 +60,7 @@
# You can also specify a condition-proc that needs to be fullfilled to display an item.
# Conditions are part of the options. They are evaluated in the context of the views,
# thus you can use all the methods and vars you have available in the views.
- primary.item :key_3, 'Admin', url, :class => 'special', :if => { current_user.admin? }
+ primary.item :key_3, 'Admin', url, :class => 'special', :if => { current_user.admin? }
primary.item :key_4, 'Account', url, :unless => { logged_in? }
# you can also specify a css id or class to attach to this particular level

0 comments on commit 9b323f1

Please sign in to comment.