Commit 45520239 by delba

use 'or' rather than '||'

parent 9c566b38
......@@ -20,7 +20,7 @@ module Paranoia
end
def delete
return if new_record? || destroyed?
return if new_record? or destroyed?
update_attribute_or_column :deleted_at, Time.now
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment