ransack 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -10
- data/lib/ransack/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40b269c3c65d60bdd34562075a2a3aaa1e2c500f
|
4
|
+
data.tar.gz: d2520b91acbc39e7dcbe534d32294e7e0b01f512
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1152e4bde37b2f1b6dc78f888d51e2438c678ca366f54e54bf6baf9aecf7167e23e0119e24730dd94599c0888d68a2acba2a094093679f68e9c405866d774df
|
7
|
+
data.tar.gz: b7be091d8256745c1feddc3e614432227714ee17b57f40ea9517309837384c486d9619971174966df7f8eafc71521ef7c09c149df639ead8bce4e98c9eab4a6b
|
data/README.md
CHANGED
@@ -26,25 +26,27 @@ instead.
|
|
26
26
|
|
27
27
|
## Getting started
|
28
28
|
|
29
|
-
|
29
|
+
Ransack is currently compatible with Rails 3.x, 4.0, 4.1 and 4.2.
|
30
|
+
|
31
|
+
In your Gemfile, for the last officially released Ransack gem:
|
30
32
|
|
31
33
|
```ruby
|
32
34
|
gem 'ransack'
|
33
35
|
```
|
34
36
|
|
35
|
-
Or if you
|
37
|
+
Or, if you would like to use the latest updates:
|
36
38
|
|
37
39
|
```ruby
|
38
40
|
gem 'ransack', github: 'activerecord-hackery/ransack'
|
39
41
|
```
|
40
42
|
|
41
43
|
The other branches (`rails-4`, `rails-4.1`, and `rails-4.2`) were each used for
|
42
|
-
running Ransack with the latest upcoming version of Rails at the
|
43
|
-
lighter and somewhat faster-running because they do not have to
|
44
|
-
versions of Rails and Active Record.
|
45
|
-
Rails is merged into Ransack master, the
|
46
|
-
|
47
|
-
|
44
|
+
developing and running Ransack with the latest upcoming version of Rails at the
|
45
|
+
time. They are lighter and somewhat faster-running because they do not have to
|
46
|
+
support previous versions of Rails and Active Record. Once support for that
|
47
|
+
Rails version is merged from the branch into Ransack master, the branch is no
|
48
|
+
longer actively maintained -- unless the open source community submits pull
|
49
|
+
requests to maintain them. You are welcome to do so!
|
48
50
|
|
49
51
|
## Usage
|
50
52
|
|
@@ -328,7 +330,6 @@ Here is an example that puts all this together, adapted from
|
|
328
330
|
In an `Article` model, add the following `ransackable_attributes` class method
|
329
331
|
(preferably private):
|
330
332
|
```ruby
|
331
|
-
# article.rb
|
332
333
|
class Article < ActiveRecord::Base
|
333
334
|
|
334
335
|
private
|
@@ -346,7 +347,6 @@ end
|
|
346
347
|
```
|
347
348
|
Here is example code for the `articles_controller`:
|
348
349
|
```ruby
|
349
|
-
# articles_controller.rb
|
350
350
|
class ArticlesController < ApplicationController
|
351
351
|
|
352
352
|
def index
|
data/lib/ransack/version.rb
CHANGED