Sha256: 983b2aa85763340e117d170090be2037d7bc024dc3ebe4a0282428e25673b2c8
Contents?: true
Size: 560 Bytes
Versions: 60
Compression:
Stored size: 560 Bytes
Contents
module ClarkKent class SharingScope attr_accessor :parent def initialize(record, parent) @record = record @parent = parent end def dom_id str = parent.type str += "_#{@record.id}" if @record.respond_to? :id str += "_reports" end def human_name if @record.respond_to? :name @record.name else @record end end def reports if 'Everyone' == @record ClarkKent::Report.shared else @record.clark_kent_reports end end end end
Version data entries
60 entries across 60 versions & 1 rubygems