Permalink
Browse files

Ignore docbox config

  • Loading branch information...
1 parent 581383e commit 0f668ae02be1f075612432fffa923f8d90f96350 @imownbey committed Nov 8, 2008
Showing with 4 additions and 2 deletions.
  1. +2 −1 .gitignore
  2. +2 −1 app/models/code_comment.rb
View
@@ -8,4 +8,5 @@ db/schema.rb
config/database.yml
code/
config/ultrasphinx/development.conf
-db/sphinx
+db/sphinx
+config/docbox.yml
@@ -43,6 +43,7 @@ def exported_body=(comment)
self.body = strip(comment)
self.exported = true # Only rdoc import uses exported_body, so this means its been exported
self.uses_begin = (comment =~ REGEXP[:pound]).nil?
+ @exported = true
end
# Before update, creating the previous version
@@ -58,7 +59,7 @@ def create_version
:skip => self.skip,
:uses_begin => self.uses_begin
)
- self.exported = !self.raw_body.nil?
+ self.exported = !@exported.nil?
self.version += 1
end
end

0 comments on commit 0f668ae

Please sign in to comment.