Module: CommentableOn::Extenders::Commentable

Defined in:
lib/commentable_on/extenders/commentable.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_commentable(*_args) ⇒ Object



8
9
10
11
12
13
14
15
16
# File 'lib/commentable_on/extenders/commentable.rb', line 8

def acts_as_commentable(*_args)
  include CommentableOn::Commentable

  class_eval do
    def self.commentable?
      true
    end
  end
end

#commentable?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/commentable_on/extenders/commentable.rb', line 4

def commentable?
  false
end