lib/wcc/contentful/model.rb in wcc-contentful-1.1.1 vs lib/wcc/contentful/model.rb in wcc-contentful-1.1.2
- old
+ new
@@ -39,19 +39,13 @@
#
# @api Model
class WCC::Contentful::Model
include WCC::Contentful::ModelAPI
- # The Model base class maintains a registry which is best expressed as a
- # class var.
- # rubocop:disable Style/ClassVars
-
class << self
def const_missing(name)
type = WCC::Contentful::Helpers.content_type_from_constant(name)
raise WCC::Contentful::ContentTypeNotFoundError,
"Content type '#{type}' does not exist in the space"
end
end
end
-
-# rubocop:enable Style/ClassVars