File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed
Expand file tree Collapse file tree 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
88 def self . ransackable_attributes ( _auth_object = nil )
99 [ 'name' ]
1010 end
11+
12+ def self . ransackable_associations ( _auth_object = nil )
13+ [ ]
14+ end
1115end
1216
1317class Post < ActiveRecord ::Base
@@ -19,6 +23,10 @@ class Post < ActiveRecord::Base
1923 def self . ransackable_attributes ( _auth_object = nil )
2024 %w( category_id title )
2125 end
26+
27+ def self . ransackable_associations ( _auth_object = nil )
28+ [ ]
29+ end
2230end
2331
2432module RGB
@@ -36,6 +44,10 @@ class TagName < ActiveRecord::Base
3644 def self . ransackable_attributes ( _auth_object = nil )
3745 [ 'color_id' ]
3846 end
47+
48+ def self . ransackable_associations ( _auth_object = nil )
49+ [ ]
50+ end
3951 end
4052end
4153
@@ -47,6 +59,10 @@ class OptionValue < ActiveRecord::Base
4759 def self . ransackable_attributes ( _auth_object = nil )
4860 [ 'value' ]
4961 end
62+
63+ def self . ransackable_associations ( _auth_object = nil )
64+ [ ]
65+ end
5066end
5167
5268class Product < ActiveRecord ::Base
You can’t perform that action at this time.
0 commit comments