Permalink
Browse files

Merge pull request #425 from malclocke/remove_readme_reference_to_ran…

…sackable_scopes

Removes README reference to code that isn't in this branch yet.
  • Loading branch information...
2 parents 7a383e2 + 0bcba21 commit d1fc95b3c21c8294e69c70e3995459d11dabfd67 @jonatack jonatack committed Sep 4, 2014
Showing with 0 additions and 12 deletions.
  1. +0 −12 README.md
View
@@ -306,7 +306,6 @@ based on a given auth object:
* `def self.ransackable_attributes(auth_object = nil)`
* `def self.ransackable_associations(auth_object = nil)`
-* `def self.ransackable_scopes(auth_object = nil)`
* `def self.ransortable_attributes(auth_object = nil)` (for sorting)
Any values not included in the arrays returned from these methods will be
@@ -317,17 +316,6 @@ ignored by default:
Employee.search({ salary_gt: 100000 }, { auth_object: current_user })
```
-### Scopes
-
-Searching by scope requires defining a whitelist of `ransackable_scopes` on the
-model class. By default all class methods (e.g. scopes) are ignored. Scopes
-will be applied for matching `true` values, or for given values if the scope
-accepts a value:
-
-```
-Employee.search({ active: true, hired_since: '2013-01-01' })
-```
-
### I18n
Ransack translation files are available in

0 comments on commit d1fc95b

Please sign in to comment.