Skip to content

Commit

Permalink
~ Update README & CHANGELOG
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
PikachuEXE committed Jan 14, 2014
1 parent 77a8862 commit 1068381
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
### Changelog


- **0.3.0**
- Add: You can now pass a nested hash for associaiton conditions (see README)
- Change: Now it requires at least ruby 1.9.2

- **0.2.0**
- Fix: You can now use this with named scopes
- Change: Use dynamic query string instead of Arel Table to generate relation (which cause the bug)
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ Other types will not be touched
SomeActiveRecordClass.where_lower(attribute1: 'AbC', attribute2: ['stRing', 123, :symBol], attribute3: ('AA'..'AZ'))
```

Since `0.3.0`
You can pass a nested hash (1 level deep only) for association condition
```ruby
record.association_records.where_lower(association_table: {association_column: value})
```

You can also add table name in key if you are using it with association
I don't plan to support any "smart" table guessing though
```ruby
Expand Down

0 comments on commit 1068381

Please sign in to comment.