smart_search 0.0.77 → 0.0.78
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/smart_search.rb +2 -0
- 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: 1f4af5eefa190ff2da06552220c3b1a135d3f27b
|
4
|
+
data.tar.gz: c995ec672acfab1a842e86a097d746259189a08e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11db95f681460849922fd90ca132e4e758292f8d5418e6178fc37670f2fbddc095f40dbdf0a2534a5a42f41e0eb3d58201b40acda91b5690b44a77cc61407cc4
|
7
|
+
data.tar.gz: c9f5a949b434dd5ba81741643b4c6b47b5fbd10abce8758fe3cb187fc78d4b52c83ef043a490674512affd128eda16194c1a44bce32344f7ad0e337c2f71e0b2
|
data/lib/smart_search.rb
CHANGED
@@ -67,6 +67,8 @@ module SmartSearch
|
|
67
67
|
def find_by_tags(tags = "", options = {})
|
68
68
|
if self.is_smart_search?
|
69
69
|
|
70
|
+
tags = tags.join(" ") if tags.is_a?(Array)
|
71
|
+
|
70
72
|
# Save Data for similarity analysis
|
71
73
|
if tags.size > 3
|
72
74
|
self.connection.execute("INSERT INTO `#{::SmartSearchHistory.table_name}` (`query`) VALUES ('#{tags.gsub(/[^a-zA-ZäöüÖÄÜß\ ]/, '')}');")
|