Permalink
Browse files

Fixed helper

  • Loading branch information...
robotex82 committed Apr 9, 2012
1 parent e9c7263 commit 4656766684105046480ed47c9c6bb9c4dd07a1b2
Showing with 3 additions and 2 deletions.
  1. +2 −1 app/helpers/ecm/cms_navigation_helper.rb
  2. +1 −1 lib/ecm/cms_navigation/version.rb
@@ -26,7 +26,8 @@ def build_navigation(navigation_item)
end
begin
- output[:options] = eval(navigation_item.options)
+ options = eval(navigation_item.options)
+ output[:options] = options if options.is_a?(Hash)
rescue
logger.debug "Invalid navigation item options: #{navigation_item.options}"
end
@@ -1,5 +1,5 @@
module Ecm
module CmsNavigation
- VERSION = "0.0.2"
+ VERSION = "0.0.3"
end
end

0 comments on commit 4656766

Please sign in to comment.