Sha256: 4f5f5d3a6f5a5383a0cddbae8a677fa7aa2dd053dfd13c5c1f5dd9b182e28cd7

Contents?: true

Size: 271 Bytes

Versions: 6

Compression:

Stored size: 271 Bytes

Contents

module Commontator
  module ThreadsHelper
    def commontable_name(thread)
      thread.config.commontable_name_proc.call(thread.commontable)
    end
    
    def commontable_id(thread)
      thread.commontable.send(thread.config.commontable_id_method)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
commontator-4.5.3 app/helpers/commontator/threads_helper.rb~
commontator-4.2.2 app/helpers/commontator/threads_helper.rb~
commontator-4.2.1 app/helpers/commontator/threads_helper.rb~
commontator-4.2.0 app/helpers/commontator/threads_helper.rb~
commontator-4.1.2 app/helpers/commontator/threads_helper.rb~
commontator-4.1.1 app/helpers/commontator/threads_helper.rb~