Files
manyfold/app/models/application_record.rb
T
2024-09-22 19:43:34 +01:00

14 lines
334 B
Ruby

class ApplicationRecord < ActiveRecord::Base
self.abstract_class = true
def self.ransackable_symbols
(ransackable_attributes + ransackable_associations + ransackable_scopes).map(&:to_sym)
end
# Default find_param implementation
# just the same as standard find()
def self.find_param(param)
find(param)
end
end