Commit 84e2e040 by Ryan Bigg

Merge pull request #42 from zhengjia/ruby20-compatibility

fix alias methods for Ruby 2 compatibility
parents 8bb21c68 7581ab26
...@@ -43,8 +43,8 @@ end ...@@ -43,8 +43,8 @@ end
class ActiveRecord::Base class ActiveRecord::Base
def self.acts_as_paranoid def self.acts_as_paranoid
alias_method :destroy!, :destroy alias :destroy! :destroy
alias_method :delete!, :delete alias :delete! :delete
include Paranoia include Paranoia
default_scope :conditions => { :deleted_at => nil } default_scope :conditions => { :deleted_at => nil }
end 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