search_rails 1.1.2 → 1.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb884217f51c0fe72ecfd70e0e0ea014c9424059
4
- data.tar.gz: 249bda3f506a9faf9ccbed16df5db9756da90d6a
3
+ metadata.gz: 364dbebfebc2218fe4db5cedbcb27103bbbdb783
4
+ data.tar.gz: 1210bc00cb75a22199b6adf67568a92b61fa0c6b
5
5
  SHA512:
6
- metadata.gz: c55532232f14852cc8c31828111a006ffe19a414f2d61103ff6185b3d02b78bcb788a75203e90bd9ea48d89c0a40e39810093d8a1644a1cfc061dc358cba6c2f
7
- data.tar.gz: 7d68e141b042cb72ecb482ecc7f92de659c38fb944682c6366438df801e54aa1a2128f4c7918f354f0689ae01db2080bf605c51664b0bd535d45b06140275ceb
6
+ metadata.gz: e45bce4ffd2c6356e61c2eb316f98d16966bc51d44e42fbd53b3e4cb9fbecdad5eee8667b883844a1a25f5ad17ddf3ae0296f0679c9d33876fff2988d5b3bf22
7
+ data.tar.gz: 02e60518a70396a645b364565aca514aa2eea82e27d36be37ae0dc75e65fc318ad102c01ec5e6903d7303233863decce23f37cc623ac8acd6e97d174aa7fb2e2
data/lib/search_rails.rb CHANGED
@@ -326,7 +326,8 @@ module SearchRails
326
326
  elsif attribute[1] == 'boolean'
327
327
  line.puts " if @search.search.downcase == 'true' || @search.search.downcase == 'tru' || @search.search.downcase == 'tr' || @search.search.downcase == 't'"
328
328
  line.puts " " + object.capitalize.singularize + ".where(" + attribute[0] + ": true).each { |" + attribute[0] + "| @" + object.downcase.pluralize + ".any? { |f| f.id == " + attribute[0] + ".id } ? true : @" + object.downcase.pluralize + " << " + attribute[0] + " }"
329
- line.puts " else @search.search.downcase == 'false' || @search.search.downcase == 'fals' || @search.search.downcase == 'fal' || @search.search.downcase == 'fa' || @search.search.downcase == 'f'"
329
+ line.puts " end"
330
+ line.puts " if @search.search.downcase == 'false' || @search.search.downcase == 'fals' || @search.search.downcase == 'fal' || @search.search.downcase == 'fa' || @search.search.downcase == 'f'"
330
331
  line.puts " " + object.capitalize.singularize + ".where(" + attribute[0] + ": false).each { |" + attribute[0] + "| @" + object.downcase.pluralize + ".any? { |f| f.id == " + attribute[0] + ".id } ? true : @" + object.downcase.pluralize + " << " + attribute[0] + " }"
331
332
  line.puts " end"
332
333
  else
@@ -1,3 +1,3 @@
1
1
  module SearchRails
2
- VERSION = "1.1.2"
2
+ VERSION = "1.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: search_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - micahnico22