lib/generators/wcc/templates/menu/models/menu_button.rb in wcc-contentful-app-0.4.0.pre.rc vs lib/generators/wcc/templates/menu/models/menu_button.rb in wcc-contentful-app-1.0.0.pre.rc1
- old
+ new
@@ -2,13 +2,9 @@
# This model represents the 'menuButton' content type in Contentful. Any linked
# entries of the 'menuButton' content type will be resolved as instances of this class.
# It exposes #find, #find_by, and #find_all methods to query Contentful.
class MenuButton < WCC::Contentful::Model::MenuButton
- # Add custom validations to ensure that app-specific properties exist:
- # validate_field :foo, :String, :required
- # validate_field :bar_links, :Array, link_to: %w[bar baz]
-
# Override functionality or add utilities
#
# # Example: override equality
# def ===(other)
# ...