All Versions
23
Latest Version
Avg Release Cycle
87 days
Latest Release
345 days ago
Changelog History
Page 2
Changelog History
Page 2
-
v1.1.2 Changes
March 21, 2017๐ Fixed
- ๐ Check if a reflection has a parent reflection before comparing them. This fixes #56.
๐จ Refactored
- The logic encapsulated in
#method_missing
and#respond_to_missing?
was difficult to follow, because it was falling back tosuper
, sometimes going up the inheritance tree multiple levels. The addition ofBabySqueel::Resolver
now handles this a little more gracefully.
-
v1.1.1 Changes
February 14, 2017๐ Fixed
- There is a bug in Active Record where the
AliasTracker
initializesArel::Table
s use the wrongtype_caster
. To address this, BabySqueel must re-initialize theArel::Table
with the correcttype_caster
(#54).
- There is a bug in Active Record where the
-
v1.1.0 Changes
February 10, 2017โฌ๏ธ > This version drops support for Active Record 4.1. If you're stil on 4.1, you should seriously consider upgrading to at least 4.2.
โ Added
- DSLs for ActiveRecord::Relation::Calculations. You can now use
plucking
,counting
,summing
,averaging
,minimizing
, andmaximizing
.
- DSLs for ActiveRecord::Relation::Calculations. You can now use
-
v1.0.3 Changes
February 09, 2017โ Added
- ๐ Support for
pluck
. - ๐ Support for
not_in
.
- ๐ Support for
-
v1.0.2 Changes
February 07, 2017โ Added
- ๐
BabySqueel::Association
now has#==
and#!=
. This is only supported for Rails 5+. Example:Post.where { author: Author.last }
.
๐ Fixed
- Incorrect alias detection caused by not tracking the full path to a join (#37).
- ๐
-
v1.0.1 Changes
November 07, 2016โ Added
- โ Add DSL#_ for wrapping expressions in Arel::Node::Grouping. Thanks to [@odedniv].
๐ Fixed
- ๐
Use strings for attribute names like Rails does. Symbols were preventing things like
unscope
from working. Thanks to [@chewi]. where.has {}
will now acceptnil
.- Arel::Nodes::Function did not previously include Arel::Math, so now you can do math operations on the result of SQL functions.
- Arel::Nodes::Binary did not previously include Arel::AliasPredication. Binary nodes can now be aliased using
as
.
-
v1.0.0 Changes
September 09, 2016โ Added
- Polyamorous. Unfortunately, this does monkey-patch Active Record internals, but there just isn't any other reliable way to generate outer joins. Baby Squeel, itself, will still keep monkey patching to an absolute minimum.
- Within DSL blocks, you can use
exists
andnot_exists
with Active Record relations. For example:Post.where.has { exists Post.where(title: 'Fun') }
.` - ๐ Support for polymorphic associations.
๐ Deprecations
- โ Removed support for Active Record 4.0.x
๐ Changed
- BabySqueel::JoinDependency is no longer a class responsible for creating Arel joins. It is now a namespace for utilities used when working with the ActiveRecord::Association::JoinDependency class.
- BabySqueel::Nodes::Generic is now BabySqueel::Nodes::Node.
- Arel nodes are only extended with the behaviors they need. Previously, all Arel nodes were being extended with
Arel::AliasPredication
,Arel::OrderPredications
, andArel::Math
.
๐ Fixed
- ๐ Fixed deprecation warnings on Active Record 5 when initializing an Arel::Table without a type caster.
- ๐ท No more duplicate joins. Previously, Baby Squeel did a very poor job of ensuring that you didn't join an association twice.
- Alias detection should now actually work. The previous implementation was naive.
-
v0.3.1 Changes
August 02, 2016โ Added
- Ported backticks and #my from Squeel
๐ Changed
- DSL#sql now returns a node wrapped in a BabySqueel proxy.
-
v0.3.0 Changes
June 26, 2016โ Added
- โ Added Squeel compatibility mode that allows
select
,order
,joins
,group
,where
, andhaving
to accept DSL blocks. - โ Added the ability to query tables that aren't backed by Active Record models.
- โ Added
BabySqueel::[]
, which provides aBabySqueel::Relation
for models, or aBabySqueel::Table
for symbols/strings.
๐ Changed
- ๐ Renamed
BabySqueel::Association::AliasingError
toBabySqueel::AssociationAliasingError
.
- โ Added Squeel compatibility mode that allows
-
v0.2.2 Changes
March 30, 2016โ Added
- ๐ Support for
group
(grouping
) andhaving
(when_having
). - ๐ Support for sifters.
- โ Added
quoted
andsql
helpers for quoting strings and SQL literals. - More descriptive error messages when a column or association is not found.
๐ Fixed
Arel::Nodes::Grouping
does not includeArel::Math
, so operations like(id + 5) + 3
would fail unexpectedly.- ๐ Fix missing bind values When joining through associations with default scope.
- โ Removed
ActiveRecord::VERSION
specific handling of theWhereChain
.
- ๐ Support for