Module: Bookmarker::Bookmarkable

Defined in:
lib/bookmarker/bookmarkable.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



4
5
6
# File 'lib/bookmarker/bookmarkable.rb', line 4

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#default_conditionsObject



15
16
17
18
19
20
# File 'lib/bookmarker/bookmarkable.rb', line 15

def default_conditions
   {
     :bookmarkable_id => self.id,
     :bookmarkable_type => self.class.base_class.name.to_s
   }
end