Files
danbooru/app/policies/ip_address_policy.rb

10 lines
171 B
Ruby

class IpAddressPolicy < ApplicationPolicy
def index?
user.is_moderator?
end
def html_data_attributes
super & record.attributes.keys.map(&:to_sym)
end
end