docbrown/app/policies/html_variant_policy.rb
Ben Halpern ea63374408
Add below-article html variant (#1669)
* Add below-article html variant

* Fix tests for variant number

* Fix stories show tests for html_variants
2019-01-28 14:31:43 -05:00

33 lines
408 B
Ruby

class HtmlVariantPolicy < ApplicationPolicy
def index?
minimal_admin?
end
def show?
minimal_admin?
end
def edit?
minimal_admin?
end
def update?
minimal_admin?
end
def new?
minimal_admin?
end
def create?
minimal_admin?
end
def destroy?
minimal_admin?
end
def permitted_attributes
%i[html name published approved target_tag group]
end
end