public
Fork of mleung/feather
Description: The simplest blog that works. Make sure you check out the feather-plugins repo as well!
Clone URL: git://github.com/ivey/feather.git
Search Repo:
remove unnecessary checks from "fire" events. Furthermore, 'new_record?' 
does not work after 'create' ("create" is a call to 'repository.~save~' 
sets @new_record false!)
jf (author)
Sat Jun 14 23:52:45 -0700 2008
commit  7bc4c5be0eae82339c0d33be5e790713c14a9af1
tree    aca1f8a070fcc0244bf3a6a0ac850756c1a52b1e
parent  067fd4c72be7c7fff4b419c7699c1640c99c90f5
...
60
61
62
63
64
65
 
66
67
68
...
75
76
77
78
79
80
 
81
82
83
...
60
61
62
 
 
 
63
64
65
66
...
73
74
75
 
 
 
76
77
78
79
0
@@ -60,9 +60,7 @@ class Article
0
   end
0
 
0
   def fire_before_create_event
0
- if new_record?
0
- Hooks::Events.before_create_article(self)
0
- end
0
+ Hooks::Events.before_create_article(self)
0
   end
0
 
0
   def fire_before_update_event
0
@@ -75,9 +73,7 @@ class Article
0
   end
0
 
0
   def fire_after_create_event
0
- if new_record?
0
- Hooks::Events.after_create_article(self)
0
- end
0
+ Hooks::Events.after_create_article(self)
0
   end
0
   
0
   def fire_after_update_event

Comments

    No one has commented yet.