Permalink
Browse files

issue #3: cleaned up ext/total

  • Loading branch information...
1 parent f29c2ce commit 95b891b125be90c871e8400892b2378d95d1e962 @matthewvermaak committed Jan 23, 2010
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/sanction/extensions/total.rb
@@ -4,10 +4,8 @@ module Total
def self.included(base)
method_name = "total"
- if base.respond_to? method_name
- base.class_eval %Q{
- (class << self; self; end).send(:remove_method, '#{method_name}')
- }
+ if base.class.respond_to? method_name
+ base.class.send(:remove_method, method_name)
end
base.class_eval %Q{

0 comments on commit 95b891b

Please sign in to comment.