-
Enhancements: migrate to new Sequel's plugins tree schema.
This step is required for Sequel 5 compatibility.
-
Enhancements: get rid of
schema
Sequel's plugin.This step is required for Sequel 5 compatibility.
-
Fix:
one_to_one
association tries to add an adder, remover and clearer methods.It's not correct and generates an error in Sequel 5.
-
Feature: make this gem compatible with Sequel 5.x.x versions.
See previous changes in this version.
-
Feature: add one-to-one polymorphic associations support.
-
Feature: relax Sequel version dependency to any 4.x version.
-
Feature: all unrecognised options are passed to underlying methods now.
For instance you can set an association class with
one_to_many :nested_assets, :as => :attachable, :class => Nested::Asset
. -
Enhancements: many code improvements:
-
Fix: errors if model's or through model's class name is CamelCased.
I.e.
model.commentable
caused an error ifCamelCasedClassName.many_to_one :commentable, :polymorphic => true
has been used. I.e.model.tags
caused an error ifModel.many_to_many :tags, :through => :camel_cased_through_class, :as => :taggable
has been used.
-
Fix: many-to-one
#association
method and eager loader error.See #9.
-
Breaking change: don't raise an exception if many-to-one association is absent.
Before: A
NameError
is raised by eager loader if association is absent.Now:
nil
is returned.See #8.
-
Fix: a
NameError
exception is raised if many-to-one association and Sequel >=4.15.0 are used.See #7.
-
Code enhancements.
Initial release.