internetee-registry/app/models/api_log/db.rb
2023-04-06 14:15:05 +03:00

16 lines
463 B
Ruby

module ApiLog
class Db < ApplicationRecord
self.abstract_class = true
# to_sym is needed because passing a string to ActiveRecord::Base.establish_connection
# for a configuration lookup is deprecated
establish_connection "api_log_#{Rails.env}".to_sym
def self.ransackable_associations(*)
authorizable_ransackable_associations
end
def self.ransackable_attributes(*)
authorizable_ransackable_attributes
end
end
end