Module: Commontator::ActsAsCommontable::ClassMethods::ThreadWithCommontator
- Defined in:
- lib/commontator/acts_as_commontable.rb
Instance Method Summary collapse
Instance Method Details
#thread ⇒ Object
30 31 32 33 34 35 36 37 |
# File 'lib/commontator/acts_as_commontable.rb', line 30 def thread @thread ||= super return @thread unless @thread.nil? @thread = build_thread @thread.save if persisted? @thread end |