lasha 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c0ef33b98d5f3cf7122936fda701f4a32d9d2c0125266269e74dd6410682c88
4
- data.tar.gz: b38ef355b4041d3ead6418bb26c86e4913f25043b1061fa174d83f9af4a826c4
3
+ metadata.gz: 1f277d1842aeaf1f053c888099e3e4988e38b1ced10ec8ba015af78f5796c25f
4
+ data.tar.gz: c4d6b1420475217ec4daf9a117ff2a6ee71ba6a39104a05ab0c35350cf1407d2
5
5
  SHA512:
6
- metadata.gz: 7bdf27086cd9c4601cc3a10bbd121f7321e36fad4db44be68f1f41e9c55cd6f8f048590892546fc2903c2035283a8723d48ae57fbf0e5a241ef5b802b229d7bb
7
- data.tar.gz: c33d78f3cba96125d2648cbe7a2ac4c8e5cd127d535eb54102c140a9cebd529e9242a117bf7f0b36a59873bb5a54deaf63d53b9a83c4cb8a97cf156ca772b7c7
6
+ metadata.gz: e4db0a0c5324bb121c497a842f6deb66a47b080b7d73d9abe97b75141f605d1a4fab0e78fc818152dd2fdb3670ed524e7df2b1f51deac6988c06bdc64f5dafa3
7
+ data.tar.gz: babd0e50b725ce473b97f6d95d34c007769c7acd794162a4a8babefdc9ffd67f7408e75830995e4dca0625ec216e400fb1d09791c37da1a0f66b9209a5651bb7
data/README.md CHANGED
@@ -65,6 +65,9 @@ Add this line to your application's Gemfile:
65
65
 
66
66
  ```ruby
67
67
  gem "lasha"
68
+
69
+ # needed if using rails >= 6.0.2.rc2
70
+ # gem "ransack", github: "activerecord-hackery/ransack"
68
71
  ```
69
72
 
70
73
  And then execute:
data/lib/lasha/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lasha
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
data/lib/lasha.rb CHANGED
@@ -27,7 +27,7 @@ module Lasha
27
27
  validate_index_data(**index_data_hash)
28
28
 
29
29
  # Ransack
30
- index_data_hash[:ransack] = collection.send :ransack, controller.params[:q]
30
+ index_data_hash[:ransack] = collection.ransack(controller.params[:q])
31
31
  index_data_hash[:collection] = index_data_hash[:ransack].result
32
32
 
33
33
  # Pagy