corn_starch 1.1.16 → 1.1.17

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
  SHA1:
3
- metadata.gz: 4c917660a7404db772fa1238478d2dc8397edf87
4
- data.tar.gz: becce4db0e19ce835938388fd71b50f952fdda42
3
+ metadata.gz: bf97af8b55de614a245212b6b44adb952ad7d4bd
4
+ data.tar.gz: a810137a2ab05b8189caa51e315b63fa4f7e272e
5
5
  SHA512:
6
- metadata.gz: 882f7e03a76654f989c8e04a47f8df513f600a8f7324a64b5dd94ba7923e185c1b293a1a989de37e45abfd3fb5829e2c2df31b1fff5129a13b0a6ba74f7973b2
7
- data.tar.gz: 43e511200bb6af9237aa289f992cd8a2254189ba732e996bffc368622268f885154603227470a372ec80a9b4a88211402e1fd71ba842002f25038eef8580d430
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
- # Get/Set Searchable Attributes
11
- def self.searchable_attributes attrs = nil
12
- @searchable_attributes = attrs || @searchable_attributes
10
+ # Included Handler
11
+ def self.included base
12
+
13
+ # Inject Class Methods
14
+ base.extend ClassMethods
13
15
  end
14
16
 
15
- # Get/Set Searchable Associations
16
- def self.searchable_associations assocs = nil
17
- @searchable_associations = assocs || @searchable_associations
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
@@ -1,3 +1,3 @@
1
1
  module CornStarch
2
- VERSION = '1.1.16'
2
+ VERSION = '1.1.17'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: corn_starch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.16
4
+ version: 1.1.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eresse