11 lines
244 B
Ruby
11 lines
244 B
Ruby
class Memo < ApplicationRecord
|
|
validates :content, presence: true
|
|
|
|
def self.ransackable_attributes(_auth_object = nil)
|
|
%w[content created_at id updated_at]
|
|
end
|
|
|
|
def self.ransackable_associations(_auth_object = nil)
|
|
[]
|
|
end
|
|
end
|