public
Description: Conditional checks on Rails filters
Clone URL: git://github.com/thoughtbot/when.git
README updates

git-svn-id: https://svn.thoughtbot.com/plugins/when/trunk@333 
7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
dcroak (author)
Wed Feb 13 18:34:01 -0800 2008
commit  75e11f547c7e293dd5de72cc3299c273f2e3b513
tree    1660fae0abbfca2dd7cf064e95ddc00401941f64
parent  ce56a07177835946159c0f89d924bc2c79d09455
0
...
77
78
79
80
81
 
 
 
82
83
84
...
77
78
79
 
 
80
81
82
83
84
85
0
@@ -77,8 +77,9 @@ class Address < ActiveRecord::Base
0
 
0
 end
0
 
0
-The callback's single responsibility is to execute code WHEN certain conditions are met.
0
-The #geolocate method's single responsibility is to ... geolocate.
0
+before_create's single responsibility is to execute code WHEN certain conditions are met.
0
+geolocate's single responsibility is to ... geolocate. It should not contain its own
0
+preconditions.
0
 
0
 More Examples
0
 =============

Comments

    No one has commented yet.