Class: ActionFramework::Model

Inherits:
Object
  • Object
show all
Includes:
EventEmitter
Defined in:
lib/actionframework/model.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.create(data) ⇒ Object



15
16
17
18
# File 'lib/actionframework/model.rb', line 15

def self.create data
	super
	self.emit :created,data
end

Instance Method Details

#update_attributes(data) ⇒ Object



10
11
12
13
# File 'lib/actionframework/model.rb', line 10

def update_attributes data
	super
	self.emit :updated_attributes,data
end