зеркало из
https://github.com/rs-pro/activeadmin-quill_editor.git
synced 2026-09-03 10:16:18 +03:00
20 строки
377 B
Ruby
20 строки
377 B
Ruby
# frozen_string_literal: true
|
|
|
|
class Profile < ApplicationRecord
|
|
belongs_to :author, inverse_of: :profile, touch: true
|
|
|
|
def to_s
|
|
description
|
|
end
|
|
|
|
class << self
|
|
def ransackable_associations(_auth_object = nil)
|
|
%w[author]
|
|
end
|
|
|
|
def ransackable_attributes(_auth_object = nil)
|
|
%w[author_id created_at description id updated_at]
|
|
end
|
|
end
|
|
end
|