contentful_rails
contentful_rails copied to clipboard
A ruby gem to help you quickly integrate Contentful into your Rails site
This pull request adds a catalog-info file to the repository. You will need to modify the values inside before merging it.
`Rails.application.eager_load!` wasn't mapping automatically so I updated this to use Zeitwerk. [Check this link for more information](https://guides.rubyonrails.org/autoloading_and_reloading_constants.html#eager-loading).
There is an engine initializer doing this: ```ruby Rails.application.eager_load! ContentfulModel::Base.descendents.each do |klass| klass.send(:add_entry_mapping) end ``` Rails applications cannot load application code so early. If you change a content model and...
Pretty sure this is the issue: https://github.com/contentful/contentful_rails/blob/1ebf57c7bab06f3c0349bfdda911f041f9147d6d/lib/contentful_rails/engine.rb#L56 Redis doesn't support regex and instead supports "glob" strings for matching expiration (and according to the Rails docs for expire_fragment, neither does memcache):...
(non rails russian doll)
## Problem Rails MemCacheStore [doesn't support `delete_matched`](https://github.com/petergoldstein/dalli/issues/397), and if you use MemCacheStore, `unpublish` webhook will raise error. ## Solution Maybe ugly, but it just rescues `NotImplementedError`. Closes #25
Adding the need to set the `preview_domain` in config as well, since this is required for the Content Preview API to be called by the application. Otherwise this conditional will...
We're seeing fairly heavy RAM consumption when performing basic queries: `@tests = TestProduct.all.order('name').load` We suspect this is due to eager loading, as TestProducts have a number of associations (only a...
This gem assumes your project is using `ActiveRecord` and fails in the boot process. Does it make sense to assume the ORM? Should `ContentfulRails` be extending `ActiveRecord::Migration` with something from...