Change Log
Version 1.7.0 - 2015-08-20
Added
- Add Mongoid support for referenced/embedded relations. PR #498.
Penn Su
- Add German locale file (de.yml). PR #537.
Philipp Weissensteiner
Fixed
- Fix #499 and #549. Ransack now loads only Active Record if both Active Record and Mongoid are running to avoid the two adapters overriding each other. This clarifies that Ransack currently knows how to work with only one database adapter active at a time. PR #541.
ASnow (Большов Андрей)
- Fix #299
attribute_method?
parsing for attribute names containing_and_
and_or_
. Attributes named likefoo_and_bar
orfoo_or_bar
are recognized now instead of running failing checks forfoo
andbar
. PR #562.
Ryohei Hoshi
- Fix a time-dependent test failure. When the database has
default_timezone = :local
(system time) and theTime.zone
is set to elsewhere, thenDate.current
does not match what the query produces for the stored timestamps. Resolved by setting everything to UTC. PR #561.
Andrew Vit
- Avoid overwriting association conditions with default scope in Rails 3. When a model with default scope was associated with conditions (
has_many :x, conditions: ...
), the default scope would overwrite the association conditions. This patch ensures that both sources of conditions are applied. Avoid selecting records from joins that would normally be filtered out if they were selected from the base table. Only applies to Rails 3, as this issue was fixed since Rails 4. PR #560.
Andrew Vit
- Fix RSpec
its
method deprecation warning: (c09aa17).
Jon Atack
- Fix deprecated RSpec syntax (ba92a0b).
Jon Atack
Changed
- Upgrade gemspec dependencies: MySQL2 from '0.3.14' to '0.3.18', and RSpec from '
> 2.14.0' to '> 2' which loads 2.99 (000cd2). - Upgrade spec suite to RSpec 3
expect
syntax backward compatible with RSpec 2.9 (87cd36d and d296caa). - FormHelper refactorings (17dd97a and 29a73b9).
Jon Atack
- Various documentation updates.
Jon Atack