lib/vedeu/models/menu.rb in vedeu-0.4.39 vs lib/vedeu/models/menu.rb in vedeu-0.4.40

- old
+ new

@@ -65,12 +65,10 @@ # @option attributes selected [Fixnum|NilClass] # @return [Menu] def initialize(attributes = {}) @attributes = defaults.merge!(attributes) - @attributes.each do |key, value| - instance_variable_set("@#{key}", value) - end + @attributes.each { |key, value| instance_variable_set("@#{key}", value) } end # Returns the item from the collection which shares the same index as the # value of {Vedeu::Menu#current}. #