Module: Mongoid::Flaggable
- Includes:
- InstanceMethods
- Defined in:
- lib/mongoid_flaggable.rb,
lib/mongoid_flaggable/version.rb,
lib/mongoid_flaggable/class_methods.rb,
lib/mongoid_flaggable/instance_methods.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Constant Summary collapse
- VERSION =
"0.0.2"
Class Method Summary collapse
Methods included from InstanceMethods
#add_flag, #add_flag!, #all_flags?, #any_flags?, #clear_flags, #clear_flags!, #flags, #remove_flag, #remove_flag!
Class Method Details
.included(base) ⇒ Object
9 10 11 12 |
# File 'lib/mongoid_flaggable.rb', line 9 def self.included(base) base.extend(ClassMethods) setup(base) end |