We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a373d75 commit d229162Copy full SHA for d229162
app/models/application_record.rb
@@ -1,3 +1,11 @@
1
class ApplicationRecord < ActiveRecord::Base
2
self.abstract_class = true
3
+
4
+ def self.ransackable_attributes(_)
5
+ super & %w[end_date start_date name description event_id state]
6
+ end
7
8
+ def self.ransackable_associations(_)
9
+ []
10
11
end
app/models/reimbursement.rb
@@ -239,4 +239,8 @@ def reject_request(attrs)
239
240
false
241
242
243
244
+ %w[request]
245
246
0 commit comments