mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-22 19:52:18 -05:00
14 lines
334 B
Ruby
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
|