GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of al3x/git-wiki
Description: A wiki engine that uses a Git repository as its data store.
Homepage: http://atonie.org/2008/02/git-wiki
Clone URL: git://github.com/zmalltalker/git-wiki.git
Adding body= to append a page
Marius Mathiesen (author)
Fri Jun 06 03:25:32 -0700 2008
commit  0e7782d0390731ddf97f03affdf32457739c0cbd
tree    2dc7dca6421b25c5bb594830d9737ba41bc9a3b2
parent  ec232260e563e9906b14454bace36953f7f42cff
...
16
17
18
 
 
 
 
19
20
21
...
16
17
18
19
20
21
22
23
24
25
0
@@ -16,6 +16,10 @@ class Page
0
     @body ||= RubyPants.new(RedCloth.new(raw_body).to_html).to_html.wiki_linked
0
   end
0
   
0
+ def body=(something)
0
+ update(something)
0
+ end
0
+
0
   def branch_name
0
     $repo.current_branch
0
   end

Comments

    No one has commented yet.