Class: Tagging

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/tagger/tagging.rb

Instance Method Summary collapse

Instance Method Details

#scopeObject



11
12
13
# File 'lib/tagger/tagging.rb', line 11

def scope
  @scope = scopable_type.constantize.find(scopable_id) if !!scopable_id
end

#scope=(object) ⇒ Object



7
8
9
# File 'lib/tagger/tagging.rb', line 7

def scope=(object)
  @scope = object
end