2025-02-20 22:46:52 +09:00
|
|
|
class Memo < ApplicationRecord
|
|
|
|
validates :content, presence: true
|
|
|
|
|
2025-02-22 23:39:32 +09:00
|
|
|
def self.ransackable_attributes(_auth_object = nil)
|
|
|
|
%w[content created_at id updated_at]
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.ransackable_associations(_auth_object = nil)
|
|
|
|
[]
|
2025-02-20 22:46:52 +09:00
|
|
|
end
|
|
|
|
end
|