1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-04 15:24:23 +01:00
fab-manager/app/policies/price_category_policy.rb

8 lines
169 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.is_admin?
end
end
end