Module: EffectiveCpdAuditLevel

Extended by:
ActiveSupport::Concern
Defined in:
app/models/concerns/effective_cpd_audit_level.rb

Overview

EffectiveCpdUser

Mark your user model with effective_cpd_user to get a few helpers And user specific point required scores

Defined Under Namespace

Modules: Base, ClassMethods

Instance Method Summary collapse

Instance Method Details

#determinationsObject



106
107
108
# File 'app/models/concerns/effective_cpd_audit_level.rb', line 106

def determinations
  Array(self[:determinations]) - [nil, '']
end

#recommendationsObject



110
111
112
# File 'app/models/concerns/effective_cpd_audit_level.rb', line 110

def recommendations
  Array(self[:recommendations]) - [nil, '']
end

#review_item_recommendationsObject



114
115
116
# File 'app/models/concerns/effective_cpd_audit_level.rb', line 114

def review_item_recommendations
  recommendations
end

#to_sObject



102
103
104
# File 'app/models/concerns/effective_cpd_audit_level.rb', line 102

def to_s
  title.presence || model_name.human
end