Skip to content
Browse files

Remove test-only code from document publish/archive callbacks

  • Loading branch information...
1 parent 96bd989 commit eea892a06f4e1e79f9456a256534925370d04649 @tomstuart tomstuart committed Jan 27, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/models/document/workflow.rb
View
4 app/models/document/workflow.rb
@@ -48,11 +48,11 @@ module Document::Workflow
def on_publish_success
archive_previous_documents
- update_in_search_index unless instance_of?(Document)
+ update_in_search_index
end
def on_archive_success
- remove_from_search_index unless instance_of?(Document)
+ remove_from_search_index
end
def archive_previous_documents

0 comments on commit eea892a

Please sign in to comment.
Something went wrong with that request. Please try again.