Module: Metajp::ActsAsInvitable

Defined in:
lib/metajp/shared/acts_as_invitable/model.rb

Overview


This module allows you to add invite codes to your application It extends your model with the invitation class and instance level variables

Usage:

require 'metajp'
class Invitation
  acts_as_invitable
end

Defined Under Namespace

Modules: ClassMethods, InstanceMethods, SingletonMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



17
18
19
# File 'lib/metajp/shared/acts_as_invitable/model.rb', line 17

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