Module: EventStatuses

Defined in:
lib/event_statuses.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



2
3
4
5
6
7
8
9
10
11
# File 'lib/event_statuses.rb', line 2

def self.included(base)
  base.class_eval {
    cattr_accessor :statuses
    extend ClassMethods
    include InstanceMethods
  }
  
  base.add_status(:id => 5, :name => 'Submitted')
  base.add_status(:id => 200, :name => 'Imported')
end