rootstrap/rails_api_base

View on GitHub
app/policies/admin/page_policy.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

module Admin
  class PagePolicy < Admin::ApplicationPolicy
    def show?
      case record.name
      when 'Dashboard'
        true
      else
        false
      end
    end
  end
end