Skip to content

Commit

Permalink
merged
Browse files Browse the repository at this point in the history
  • Loading branch information
Zhomart committed Sep 18, 2014
2 parents ee23c4a + ec67ec6 commit 811903f
Show file tree
Hide file tree
Showing 24 changed files with 862 additions and 151 deletions.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ services: mongodb

language: ruby

before_install:
- travis_retry gem install bundler
sudo: false

rvm:
- 2.1
- 2.0.0
- 2.0
- 1.9.3

env:
Expand Down
80 changes: 80 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Change Log
All notable changes to this project from August 2014 on will be documented here.

## Unreleased
### Added

* Add `ro.yml` Romanian translation file.

*Andreas Philippi*

* Add `not_true` and `not_false` predicates and update the "Basic Searching"
wiki. Fixes #123, #353.

*Pedro Chambino*

* Start a CHANGELOG.
* Add new documentation in the README explaining how to group queries by `OR`
instead of the default `AND` using the `m: 'or'` combinator.

*Jon Atack*

### Fixed

* Fix attribute translations when using ActiveRecord with STI.

*Andreas Philippi*

* Fix the params hash being modified by `Search.new` and the Ransack scope.

*Daniel Rikowski*

* Apply default scope conditions for association joins (Rails 3).

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 in Rails 4.

*Andrew Vit*

* Fix incoherent code examples in the README Associations section that mixed
up `@q` and `@search`.

*Jon Atack*

### Changed

* Refactor Ransack::Translate.

* Rewrite much of the README doc, including the Associations section
code examples and the Authorizations section showing how to whitelist
attributes, associations, sorts and scopes.

*Jon Atack*

## Version 1.3.0 - 2014-08-23
### Added

* Add search scopes by popular demand. Using `ransackable_scopes`, users can
define whitelists for allowed model scopes on a parent table. Not yet
implemented for associated models' scopes; scopes must be defined on the
parent table.

*Gleb Mazovetskiy*, *Andrew Vit*, *Sven Schwyn*

* Add `JOINS` merging.

* Add `OR` grouping on base search.

* Allow authorizing/whitelisting attributes, associations, sorts and scopes.

* Improve boolean predicates’ handling of `false` values.

* Allow configuring Ransack to raise on instead of ignore unknown search
conditions.

* Allow passing blank values to search without crashing.

* Add wildcard escaping compatibility for SQL Server databases.

* Add various I18n translations.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ gem 'rake'

rails = ENV['RAILS'] || '4-1-stable'

gem 'polyamorous', '~> 1.1.0'
gem 'polyamorous', '~> 1.1'

gem 'pry'

Expand Down
Loading

0 comments on commit 811903f

Please sign in to comment.