Files
danbooru/app/policies/note_policy.rb
evazion a7dc05ce63 Enable frozen string literals.
Make all string literals immutable by default.
2021-12-14 21:33:27 -06:00

16 lines
288 B
Ruby

# frozen_string_literal: true
class NotePolicy < ApplicationPolicy
def revert?
update?
end
def permitted_attributes_for_create
[:x, :y, :width, :height, :body, :post_id, :html_id]
end
def permitted_attributes_for_update
[:x, :y, :width, :height, :body]
end
end