1
0
Fork 0
dokkan-data-rails/app/policies/rarity_policy.rb

18 lines
183 B
Ruby
Raw Normal View History

2015-10-08 15:18:21 -04:00
class RarityPolicy < ApplicationPolicy
def index?
true
end
def create?
user.admin?
end
def update?
user.admin?
end
def destroy?
user.admin?
end
end