Sha256: 492e009fa653910754520b0e16698004d2bdf79cdd4be79d994f050a29521b37
Contents?: true
Size: 654 Bytes
Versions: 1
Compression:
Stored size: 654 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 return Commontator.commontator_missing_name if closer.nil? config = closer.commontator_config config.commontator_name_method.blank? ? config.commontator_missing_name : \ closer.send(config.commontator_name_method) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commontator-0.4.1 | app/helpers/commontator/threads_helper.rb |