Sha256: 19ade7639c501f589449ce019ac284f3082944818e5d0f3d4a572ef9d3de8a41

Contents?: true

Size: 282 Bytes

Versions: 8

Compression:

Stored size: 282 Bytes

Contents

module Storytime::PostComments
  extend ActiveSupport::Concern

  included do
    has_many :comments, class_name: "Storytime::Comment", foreign_key: "post_id"

    def show_comments?
      true
    end
  end

  module ClassMethods
    def show_comments?
      true
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
storytime-2.1.6 app/models/concerns/storytime/post_comments.rb
storytime-2.1.5 app/models/concerns/storytime/post_comments.rb
storytime-2.1.4 app/models/concerns/storytime/post_comments.rb
storytime-2.1.3 app/models/concerns/storytime/post_comments.rb
storytime-2.1.2 app/models/concerns/storytime/post_comments.rb
storytime-2.1.1 app/models/concerns/storytime/post_comments.rb
storytime-2.1.0 app/models/concerns/storytime/post_comments.rb
storytime-2.0.0 app/models/concerns/storytime/post_comments.rb