- Added
#load!
method, which raisesContentfulModel::NotFoundError
if result is empty ornil
. #138
- Added support for
Symbol Array
on migrations. #129 - Added the ability to set different configurations for CDA and CMA clients. #135
- Use default configuration whenever creating a CMA client. #130
- Use
display_field
instead ofdisplayField
for Content Type migrations. #132 - Refresh fields after calling
#remove_field
, to avoid extra unnecessary calls. #134
- Added support for RichText fields on migrations. #127
- Added support to define display fields for Content Types on migrations. #128
- Fixed namespace issue when having relationships defined within modules. #125
- Fixed test failures by only allowing this gem to handle field errors, instead of delegating to the SDK.
- Changed
#cache_key
to usestrftime
instead ofto_s(:usec)
to achieve compatibility with older ActiveSupport versions.
- Added
::validate_with
and::validate
methods for more complex validations - Added
#hash
and#eql?
toContentfulModel::Base
for equality and set operations #65 - Added
#id
and#id=
toContentfulModel::Migrations::ContentType
to allow to set a custom ID #80 - Added default ID for content types created using migrations, to be the
camelCased
version of the name, replicating the Web App #80 - Added
#paginate
query to allow pagination #79 - Added tests for user defined methods and nested classes #74
- Added automated include discovery when using explicit relationship declarations #85
- Added support for environments
- Added
#each_page
and#each_entry
to automatically paginate entries - Added
Asset
wrapper class with search and Image API extensions #3
- Setters and Getters now work for current locale instead of only default locale
- Management SDK now properly raises errors and works properly with localized content
- Queries now properly returns
::Contentful::Array
instead of::Array
instances #67 - Queries now allow multiple fields for
find_by
and also works withsys
fields #49 - Queries now do not share state any more, interface remained the same #94
- Queries using
find_by
can now also requestsys
fields without having to specify always thesys.
prefix return_nil_for_empty
no longer throws an error #73belongs_to_many
now uses thelinks_to_entry
parameter and greatly simplifies the codehas_many_nested
now properly works and does extra queries only when required
- Updated to CDA SDK 2.x
- Updated to CMA SDK 2.x
- Updated Specs to run mostly against real data instead of mocks
- Validations are now run by default before
#save
- Removed
require_all
dependency #95 ChainableQueries
module removed, behaviour now moved toQueries
andQuery
. #94has_children?
forhas_many_nested
was renamed tochildren?
- Updated code to follow our style guide
belongs_to_many
now doesn't supportinverse_of
- Added CMA Integration
- Added Specs for all major components
- Added Content Model Migrations
- Added Locale Search #27
- Fixed getter method resolution
This Changelog has been introduced after the 0.1.7 release by @errorstudio. Since then, @contentful has taken ownership. This changelog will start reflecting changes from that point onwards.
- CDA Integration with Query Capabilities
- Preview API Integration