* increase mentee-mentor description length and fix linting errors * fix char limit issue and refactor tests
33 lines
409 B
Ruby
33 lines
409 B
Ruby
class BlockPolicy < ApplicationPolicy
|
|
def index?
|
|
user_admin?
|
|
end
|
|
|
|
def show?
|
|
user_admin?
|
|
end
|
|
|
|
def new?
|
|
user_admin?
|
|
end
|
|
|
|
def edit?
|
|
user_admin?
|
|
end
|
|
|
|
def create?
|
|
user_admin?
|
|
end
|
|
|
|
def update?
|
|
user_admin?
|
|
end
|
|
|
|
def destroy?
|
|
user_admin?
|
|
end
|
|
|
|
def permitted_attributes
|
|
%i[input_html input_css input_javascript featured index_position publish_now]
|
|
end
|
|
end
|