lib/generators/wcc/templates/page/models/page.rb in wcc-contentful-app-0.4.0.pre.rc vs lib/generators/wcc/templates/page/models/page.rb in wcc-contentful-app-1.0.0.pre.rc1

- old
+ new

@@ -2,13 +2,9 @@ # This model represents the 'page' content type in Contentful. Any linked # entries of the 'page' content type will be resolved as instances of this class. # It exposes #find, #find_by, and #find_all methods to query Contentful. class Page < WCC::Contentful::Model::Page - # 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) # ...