Module: ActsAsLikeable::Extenders::Likeable

Defined in:
lib/acts_as_likeable/extenders/likeable.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_likeableObject



10
11
12
13
14
15
16
17
18
19
# File 'lib/acts_as_likeable/extenders/likeable.rb', line 10

def acts_as_likeable
  require 'acts_as_likeable/likeable'
  include ActsAsLikeable::Likeable

  class_eval do
    def self.likeable?
      true
    end
  end
end

#likeable?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/acts_as_likeable/extenders/likeable.rb', line 6

def likeable?
  false
end