Skip to content

Commit

Permalink
fixed column alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
mikel committed Jan 16, 2010
1 parent 4a2d2ef commit e1c15d9
Showing 1 changed file with 17 additions and 15 deletions.
32 changes: 17 additions & 15 deletions activemodel/README
Expand Up @@ -12,21 +12,21 @@ Active Model provides a known set of interfaces that your objects can implement
to then present a common interface to the Action Pack helpers. You can include to then present a common interface to the Action Pack helpers. You can include
functionality from the following modules: functionality from the following modules:


* Adding callbacks to your class * Adding callbacks to your objects


class MyClass class MyClass
extend ActiveModel::Callbacks extend ActiveModel::Callbacks
define_model_callbacks :create define_model_callbacks :create

def create def create
_run_create_callbacks do _run_create_callbacks do
# Your create action methods here # Your create action methods here
end end
end end
end end

...gives you before_create, around_create and after_create class methods that ...gives you before_create, around_create and after_create class methods that
wrap your create method. wrap your create method.


{Learn more}[link:classes/ActiveModel/CallBacks.html] {Learn more}[link:classes/ActiveModel/CallBacks.html]


Expand All @@ -38,6 +38,8 @@ functionality from the following modules:


...returns the class itself when sent :to_model ...returns the class itself when sent :to_model


{Learn more}[link:classes/ActiveModel/Conversion.html]

* Tracking changes in your object * Tracking changes in your object


Provides all the value tracking features implemented by ActiveRecord... Provides all the value tracking features implemented by ActiveRecord...
Expand Down

0 comments on commit e1c15d9

Please sign in to comment.