Skip to content

Commit

Permalink
Fix an error when adding page parts.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgarber committed Jan 7, 2010
1 parent 1b7baa4 commit 0fd70d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chronicle/resource_controller_extensions.rb
Expand Up @@ -24,7 +24,7 @@ def load_model_with_version

def clear_model_cache_with_draft_awareness
# Don't clear the cache if it's unpublished
unless model.status_id < Status[:published].id
if model.respond_to?(:status_id) && model.status_id >= Status[:published].id
clear_model_cache_without_draft_awareness
end
end
Expand Down

0 comments on commit 0fd70d6

Please sign in to comment.