Permalink
Browse files

Merge branch 'master' of git@github.com:notahat/giki

  • Loading branch information...
2 parents 817712b + d50aa0c commit e1bad9c2e4a4be4c4e941b3037762ce4bd05539c @notahat committed Jun 29, 2008
Showing with 2 additions and 1 deletion.
  1. +1 −0 app/models/project.rb
  2. +1 −1 spec/models/page_spec.rb
View
@@ -24,6 +24,7 @@ def pages
def save
if new_record?
+ Dir.mkdir("#{RAILS_ROOT}/db/projects") unless File.exist?("#{RAILS_ROOT}/db/projects")
Dir.mkdir(self.class.projects_root) unless File.exist?(self.class.projects_root)
Dir.mkdir(path) unless File.exist?(path)
@git = Git.init(path)
View
@@ -25,6 +25,6 @@
end
def create_test_page
- @page = @project.pages.create(:name => "test_page", :body => "just a test", :commit_message => "added test_page")
+ @page = @project.pages.create(:name => "test_page", :body => "just a test", :change_message => "added test_page")
end
end

0 comments on commit e1bad9c

Please sign in to comment.