public
Description: This contains various plugins for Feather
Clone URL: git://github.com/eldiablo/feather-plugins.git
Search Repo:
Click here to lend your support to: feather-plugins and make a donation at www.pledgie.com !
Refactored finding an article manually with Article[comment.article_id] to 
use the association comment.article.
mleung (author)
Fri May 09 21:16:17 -0700 2008
commit  462a2faf593d4a55484bb503bca486d0e48dbe63
tree    7b08ff421cd366be724c541580e2d7b7bd49c27c
parent  bb702db56711bb5d6c438589409d23ce56b19dfc
...
12
13
14
15
 
16
17
18
19
20
21
22
 
23
24
25
...
12
13
14
 
15
16
17
18
19
20
21
 
22
23
24
25
0
@@ -12,14 +12,14 @@
0
       @comment.published = (params[:published] == "true" ? true : false) if params[:published]
0
       @comment.save
0
       expire_index
0
- expire_article(Article[@comment.article_id])
0
+ expire_article(@comment.article)
0
       render_js
0
     end
0
 
0
     def delete
0
       @comment.destroy!
0
       expire_index
0
- expire_article(Article[@comment.article_id])
0
+ expire_article(@comment.article)
0
       redirect url(:admin_comments)
0
     end
0
 

Comments

    No one has commented yet.