Module: ActsAsLikeable::Extenders::Liker
- Defined in:
- lib/acts_as_likeable/extenders/liker.rb
Instance Method Summary collapse
Instance Method Details
#acts_as_liker(*args) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/acts_as_likeable/extenders/liker.rb', line 10 def acts_as_liker(*args) require 'acts_as_likeable/liker' include ActsAsLikeable::Liker class_eval do def self.liker? true end end end |
#liker? ⇒ Boolean
6 7 8 |
# File 'lib/acts_as_likeable/extenders/liker.rb', line 6 def liker? false end |