corn_starch 1.1.16 → 1.1.17
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/lib/corn_starch/unisearchable.rb +17 -6
- data/lib/corn_starch/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: bf97af8b55de614a245212b6b44adb952ad7d4bd
|
4
|
+
data.tar.gz: a810137a2ab05b8189caa51e315b63fa4f7e272e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cfa199c09ff45298c06b9577dbce81875f85f8514751e58e47147238193af4839dc8eb73f23e426bec2b5d00d74de65462096e2ebef1b705322c59b2c14974ff
|
7
|
+
data.tar.gz: d89485119ab75bdf4cab00a5417f87cf0746fd40b078344cc489c494bd4a4948546953967a661346b7b849f560936c2ad0c91b9c614c0782db2926cba0882cf1
|
@@ -7,14 +7,25 @@ module CornStarch
|
|
7
7
|
# Unisearchable Module
|
8
8
|
module Unisearchable
|
9
9
|
|
10
|
-
#
|
11
|
-
def self.
|
12
|
-
|
10
|
+
# Included Handler
|
11
|
+
def self.included base
|
12
|
+
|
13
|
+
# Inject Class Methods
|
14
|
+
base.extend ClassMethods
|
13
15
|
end
|
14
16
|
|
15
|
-
#
|
16
|
-
|
17
|
-
|
17
|
+
# Class Methods
|
18
|
+
module ClassMethods
|
19
|
+
|
20
|
+
# Get/Set Searchable Attributes
|
21
|
+
def searchable_attributes attrs = nil
|
22
|
+
@searchable_attributes = attrs || @searchable_attributes
|
23
|
+
end
|
24
|
+
|
25
|
+
# Get/Set Searchable Associations
|
26
|
+
def searchable_associations assocs = nil
|
27
|
+
@searchable_associations = assocs || @searchable_associations
|
28
|
+
end
|
18
29
|
end
|
19
30
|
end
|
20
31
|
end
|
data/lib/corn_starch/version.rb
CHANGED