Module: Caboose::Can::Flag

Defined in:
lib/can_flag.rb

Defined Under Namespace

Modules: CanFlagInstanceMethods, ClassMethods, InstanceMethods, SingletonMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
# File 'lib/can_flag.rb', line 5

def self.included(base)
  base.extend ClassMethods  
  if defined?(::ActiveSupport::Callbacks)
    base.define_callbacks :after_flagged
  end
end