lib/vedeu/models/menu.rb in vedeu-0.6.1 vs lib/vedeu/models/menu.rb in vedeu-0.6.2

- old
+ new

@@ -47,13 +47,13 @@ # name 'menus_must_have_a_name' # items Track.all_my_favourites # # ... # end # - # @raise [Vedeu::InvalidSyntax] The required block was not given. + # @raise [Vedeu::Error::InvalidSyntax] The required block was not given. # @return [API::Menu] def self.menu(name = '', &block) - fail Vedeu::InvalidSyntax, 'block not given' unless block_given? + fail Vedeu::Error::InvalidSyntax, 'block not given' unless block_given? build(name: name, &block).store end # Returns a new instance of Vedeu::Menu.