Sha256: 3502d115a8b853f00a280d93097bc95ff053862b3657e5b74d56be5265eff1ee
Contents?: true
Size: 577 Bytes
Versions: 1
Compression:
Stored size: 577 Bytes
Contents
module Commontator module ThreadsHelper def commontable_name(thread) config = thread.config config.commontable_name.blank? ? \ thread.commontable.class.name : \ config.commontable_name end def commontable_id(thread) thread.commontable.send(thread.config.commontable_id_method) end def closer_name(thread) closer = thread.closer config = closer.commontator_config config.commontator_name_method.blank? ? config.anonymous_name : \ closer.send(config.commontator_name_method) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commontator-0.3.10 | app/helpers/commontator/threads_helper.rb |