Commit 7581ab26 by zhengjia

fix alias

parent 8bb21c68
......@@ -43,8 +43,8 @@ end
class ActiveRecord::Base
def self.acts_as_paranoid
alias_method :destroy!, :destroy
alias_method :delete!, :delete
alias :destroy! :destroy
alias :delete! :delete
include Paranoia
default_scope :conditions => { :deleted_at => nil }
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