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

git-svn-id: https://svn.thoughtbot.com/plugins/when/trunk@306 
7bbfaf0e-4d1d-0410-9690-a8bb5f8ef2aa
dcroak (author)
Mon Feb 11 18:37:39 -0800 2008
commit  74f68a2f1c6b2d6679cd93b4ad4a3dba13acc2df
tree    ad4d1a08fe5a8b666d2f8d88a2f45d119389fcf0
parent  03550375bb94f91069252c19bd11e266f312ad4b
...
1
 
...
 
1
0
@@ -1 +1 @@
0
-# Include hook code here
0
+require 'when'
...
1
 
 
 
 
 
 
...
 
1
2
3
4
5
6
0
@@ -1 +1,6 @@
0
-# When
0
+require 'validations'
0
+require 'filters'
0
+require 'callbacks'
0
+
0
+ActiveRecord::Base.send :include, ActiveRecordHook::Callbacks
0
+ActiveRecord::Base.send :include, ActiveRecordHook::Validations

Comments

    No one has commented yet.