Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Philippe Boily committed Sep 28, 2012
1 parent d1a22c2 commit 4607a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/monologue/posts_revision_decorator.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Monologue::PostsRevision.class_eval do
before_validation do
if self.post.posts_revision_id.nil?
if self.post.nil? || self.post.posts_revision_id.nil?
self.is_markdown = true
else
self.is_markdown = self.post.active_revision.is_markdown
Expand Down

0 comments on commit 4607a18

Please sign in to comment.