github activerecord-hackery/ransack v1.7.0
Ransack 1.7.0

latest releases: v4.0.0, v3.2.1, v3.2.0...
9 years ago

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 like foo_and_bar or foo_or_bar are recognized now instead of running failing checks for foo and bar. PR #562.

Ryohei Hoshi

  • Fix a time-dependent test failure. When the database has default_timezone = :local (system time) and the Time.zone is set to elsewhere, then Date.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

Don't miss a new ransack release

NewReleases is sending notifications on new releases.