Skip to content

Commit

Permalink
Fix for bad attempt at overriding destroy but also allowing real dest…
Browse files Browse the repository at this point in the history
…roys
  • Loading branch information
lostboy committed Apr 30, 2010
1 parent baf24f4 commit 470e468
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/publishus.rb
Expand Up @@ -45,7 +45,7 @@ def live
end

def destroy(real=false)
self.update_attribute(:deleted_at, Time.now) unless real then super.destroy
self.update_attribute(:deleted_at, Time.now)
end

def publish!(time=nil)
Expand Down

0 comments on commit 470e468

Please sign in to comment.