Sha256: d7f5c8e061fee25ccc09351062d7c69c9075c46c708ec2de1b63d9e2c8b957e4
Contents?: true
Size: 581 Bytes
Versions: 3
Compression:
Stored size: 581 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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
commontator-0.2.4 | app/helpers/commontator/threads_helper.rb |
commontator-0.2.0 | app/helpers/commontator/threads_helper.rb |
commontator-0.1.46 | app/helpers/commontator/threads_helper.rb |