Sha256: 4bb7b60533e0354ee3f3fe26727094885653de580fbfe7d08bee72de7ad7a5fe

Contents?: true

Size: 333 Bytes

Versions: 2

Compression:

Stored size: 333 Bytes

Contents

# A concern for commentable models
module Basecamp3
  module Concerns
    module Commentable
      attr_accessor :comments_count

      # Returns the related comments.
      #
      # @return [Array<Basecamp3::Comment>]
      def comments
        @mapped_comments ||= Basecamp3::Comment.all(bucket.id, id)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
basecamp3-0.1.4 lib/basecamp3/concerns/commentable.rb
basecamp3-0.1.3 lib/basecamp3/concerns/commentable.rb