aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/README
diff options
context:
space:
mode:
authorMikel Lindsaar <raasdnil@gmail.com>2010-01-16 23:09:32 +1100
committerMikel Lindsaar <raasdnil@gmail.com>2010-01-16 23:09:32 +1100
commite1c15d9fa147fd067b619ab4ad369fe0f80f1840 (patch)
tree778dd5cefc693c0040e9da872bab525c489f48d2 /activemodel/README
parent4a2d2ef91a99602dc12acc73b20920a4382504d0 (diff)
downloadrails-e1c15d9fa147fd067b619ab4ad369fe0f80f1840.tar.gz
rails-e1c15d9fa147fd067b619ab4ad369fe0f80f1840.tar.bz2
rails-e1c15d9fa147fd067b619ab4ad369fe0f80f1840.zip
fixed column alignment
Diffstat (limited to 'activemodel/README')
-rw-r--r--activemodel/README32
1 files changed, 17 insertions, 15 deletions
diff --git a/activemodel/README b/activemodel/README
index 7c9c754a8e..cc687e51ed 100644
--- a/activemodel/README
+++ b/activemodel/README
@@ -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
functionality from the following modules:
-* Adding callbacks to your class
-
- class MyClass
- extend ActiveModel::Callbacks
- define_model_callbacks :create
-
- def create
- _run_create_callbacks do
- # Your create action methods here
- end
- end
- end
-
- ...gives you before_create, around_create and after_create class methods that
- wrap your create method.
+* Adding callbacks to your objects
+
+ class MyClass
+ extend ActiveModel::Callbacks
+ define_model_callbacks :create
+
+ def create
+ _run_create_callbacks do
+ # Your create action methods here
+ end
+ end
+ end
+
+ ...gives you before_create, around_create and after_create class methods that
+ wrap your create method.
{Learn more}[link:classes/ActiveModel/CallBacks.html]
@@ -38,6 +38,8 @@ functionality from the following modules:
...returns the class itself when sent :to_model
+ {Learn more}[link:classes/ActiveModel/Conversion.html]
+
* Tracking changes in your object
Provides all the value tracking features implemented by ActiveRecord...