watermarkchurch / wcc-contentful

An alternative to Contentful's contentful.rb ruby client, contentful_model, and contentful_rails gems all in one.
MIT License
2 stars 1 forks source link

Model name collisions #43

Closed gburgett closed 6 years ago

gburgett commented 6 years ago

The Model registry no longer attempts to instantiate an applications' ActiveRecord model classes as though they were Contentful model classes. This allows the app to define an ActiveRecord model, ex. Menu, that collides with a content type in their space. They will refer to the ActiveRecord model by it's non-namespaced name, and the content type by it's namespaced name ex. WCC::Contentful::Model::Menu.