@@ -27,7 +27,7 @@ instead.
2727If you're viewing this at
2828[ github.com/activerecord-hackery/ransack] ( https://github.com/activerecord-hackery/ransack ) ,
2929you're reading the documentation for the master branch with the latest features.
30- [ View documentation for the last release (1.5.1 ).] ( https://github.com/activerecord-hackery/ransack/tree/v.1.5.1 )
30+ [ View documentation for the last release (1.6.0 ).] ( https://github.com/activerecord-hackery/ransack/tree/v.1.6.0 )
3131
3232## Getting started
3333
@@ -36,7 +36,7 @@ We try to keep it functioning with Rails master too, although frequent changes
3636in Arel and Active Record make that a moving target. Ransack works
3737out-of-the-box with Active Record and features new support for Mongoid 4.0
3838(without associations, further details below). If you are on Ruby 1.8, you may
39- need to use a slightly earlier version of Ransack, like '< 1.4' .
39+ need to use an earlier version of Ransack like 1.3.0 .
4040
4141In your Gemfile, for the last officially released Ransack gem:
4242
@@ -64,9 +64,9 @@ To use one of the branches, for example the `rails-4.1` branch:
6464gem ' ransack' , github: ' activerecord-hackery/ransack' , branch: ' rails-4.1'
6565```
6666
67- If you are using Rails master, be advised that Ransack master does not
68- currently work with the latest breaking changes in Rails master and
69- Arel 7/master of late December 2014. The most recent working commits are:
67+ If you are using Rails master, be advised that Ransack master does not yet work
68+ with the breaking changes in Rails master and Arel master added since December
69+ 2014 . The most recent working commits are:
7070
7171``` ruby
7272gem ' rails' , github: ' rails/rails' , ref: ' 266ff70'
@@ -275,7 +275,7 @@ Article.search(params[:q])
275275```
276276
277277Users have reported issues of name conflicts with other gems, so ` #search ` may
278- possibly be deprecated in the next major version of Ransack.
278+ possibly be deprecated in the next major version of Ransack (2.0) .
279279
280280For now, if Ransack's ` #search ` method conflicts with the name of another
281281method named ` search ` in your code or another gem, you may resolve it either by
@@ -372,31 +372,31 @@ class methods in your models to apply selective authorization:
372372Here is how these four methods are implemented in Ransack:
373373
374374``` ruby
375- # Ransackable_attributes, by default, returns all column names
375+ # `ransackable_attributes` by default returns all column names
376376 # and any defined ransackers as an array of strings.
377377 # For overriding with a whitelist array of strings.
378378 #
379379 def ransackable_attributes (auth_object = nil )
380380 column_names + _ransackers .keys
381381 end
382382
383- # Ransackable_associations, by default, returns the names
383+ # `ransackable_associations` by default returns the names
384384 # of all associations as an array of strings.
385385 # For overriding with a whitelist array of strings.
386386 #
387387 def ransackable_associations (auth_object = nil )
388388 reflect_on_all_associations.map { |a | a.name.to_s }
389389 end
390390
391- # Ransortable_attributes, by default, returns the names
391+ # `ransortable_attributes` by default returns the names
392392 # of all attributes available for sorting as an array of strings.
393393 # For overriding with a whitelist array of strings.
394394 #
395395 def ransortable_attributes (auth_object = nil )
396396 ransackable_attributes(auth_object)
397397 end
398398
399- # Ransackable_scopes, by default, returns an empty array
399+ # `ransackable_scopes` by default returns an empty array
400400 # i.e. no class methods/scopes are authorized.
401401 # For overriding with a whitelist array of *symbols*.
402402 #
0 commit comments