15 lines
292 B
Ruby
15 lines
292 B
Ruby
# frozen_string_literal: true
|
|
class DashboardPolicy < Struct.new(:user, :dashboard)
|
|
attr_reader :user, :record
|
|
|
|
def initialize(user, record)
|
|
raise Pundit::NotAuthorizedError, "Must be logged in." unless user
|
|
@user = user
|
|
@record = record
|
|
end
|
|
|
|
def show?
|
|
true
|
|
end
|
|
end
|