Sha256: 556c6f38b767a726a26e7e251b0e6fe0143a4cba1657753a3361e021b918d838
Contents?: true
Size: 443 Bytes
Versions: 148
Compression:
Stored size: 443 Bytes
Contents
# frozen_string_literal: true require_dependency "renalware/low_clearance" require "attr_extras" module Renalware module LowClearance class DashboardPresenter attr_reader_initialize [:patient!, :user!] delegate :edit?, to: :profile_policy, prefix: true def profile patient.profile || patient.build_profile end def profile_policy Pundit.policy!(user, profile) end end end end
Version data entries
148 entries across 148 versions & 1 rubygems