skill-assessment-app/app/policies/dashboard_policy.rb
2016-09-21 17:04:08 -05:00

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