lib/simple_navigation/item.rb in simple-navigation-4.3.0 vs lib/simple_navigation/item.rb in simple-navigation-4.4.0
- old
+ new
@@ -3,11 +3,12 @@
# Gets generated by the item method in the config-file.
class Item
attr_reader :key,
:name,
:sub_navigation,
- :url
+ :url,
+ :options
# see ItemContainer#item
#
# The subnavigation (if any) is either provided by a block or
# passed in directly as <tt>items</tt>
@@ -119,16 +120,16 @@
config.auto_highlight && container.auto_highlight
end
private
- attr_accessor :container,
- :options
+ attr_accessor :container
attr_writer :key,
:name,
:sub_navigation,
- :url
+ :url,
+ :options
def config
SimpleNavigation.config
end