lib/wcc/contentful/model_api.rb in wcc-contentful-1.4.0 vs lib/wcc/contentful/model_api.rb in wcc-contentful-1.5.0.rc1
- old
+ new
@@ -35,10 +35,10 @@
def services
@services ||=
# try looking up the class heierarchy
(superclass.services if superclass.respond_to?(:services)) ||
# create it if we have a configuration
- WCC::Contentful::Services.new(configuration)
+ WCC::Contentful::Services.new(configuration, model_namespace: self)
end
def store(preview = nil)
ActiveSupport::Deprecation.warn('Use services.store instead')