1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-11-29 10:24:20 +01:00
fab-manager/app/policies/price_category_policy.rb

8 lines
166 B
Ruby
Raw Normal View History

class PriceCategoryPolicy < ApplicationPolicy
2016-08-25 15:36:52 +02:00
%w(show create update destroy).each do |action|
2016-08-24 12:30:48 +02:00
define_method "#{action}?" do
user.admin?
2016-08-24 12:30:48 +02:00
end
end
end