File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ class Category < ActiveRecord::Base
8
8
def self . ransackable_attributes ( _auth_object = nil )
9
9
[ 'name' ]
10
10
end
11
+
12
+ def self . ransackable_associations ( _auth_object = nil )
13
+ [ ]
14
+ end
11
15
end
12
16
13
17
class Post < ActiveRecord ::Base
@@ -19,6 +23,10 @@ class Post < ActiveRecord::Base
19
23
def self . ransackable_attributes ( _auth_object = nil )
20
24
%w( category_id title )
21
25
end
26
+
27
+ def self . ransackable_associations ( _auth_object = nil )
28
+ [ ]
29
+ end
22
30
end
23
31
24
32
module RGB
@@ -36,6 +44,10 @@ class TagName < ActiveRecord::Base
36
44
def self . ransackable_attributes ( _auth_object = nil )
37
45
[ 'color_id' ]
38
46
end
47
+
48
+ def self . ransackable_associations ( _auth_object = nil )
49
+ [ ]
50
+ end
39
51
end
40
52
end
41
53
@@ -47,6 +59,10 @@ class OptionValue < ActiveRecord::Base
47
59
def self . ransackable_attributes ( _auth_object = nil )
48
60
[ 'value' ]
49
61
end
62
+
63
+ def self . ransackable_associations ( _auth_object = nil )
64
+ [ ]
65
+ end
50
66
end
51
67
52
68
class Product < ActiveRecord ::Base
You can’t perform that action at this time.
0 commit comments