lib/vedeu/api/menu.rb in vedeu-0.2.0 vs lib/vedeu/api/menu.rb in vedeu-0.2.1

- old
+ new

@@ -90,11 +90,13 @@ name: '', items: [] } end + # At present, validates that a menu has a name attribute. + # # @api private - # @return [TrueClass|FalseClass] + # @return [Boolean] def validate_attributes! unless defined_value?(attributes[:name]) fail InvalidSyntax, 'Menus must have a `name`.' end end