Module: HasModerated::UserHooks::ClassMethods
- Defined in:
- lib/has_moderated/user_hooks.rb
Instance Method Summary collapse
Instance Method Details
#moderation_creating(&block) ⇒ Object
4 5 6 7 8 |
# File 'lib/has_moderated/user_hooks.rb', line 4 def moderation_creating &block cattr_accessor :moderation_hooks self.moderation_hooks ||= { :creating => [] } self.moderation_hooks[:creating].push(block) end |