Permalink
Browse files

Allow super handling of method missing

  • Loading branch information...
1 parent 9afcec9 commit c4c93e6fd6a0879b9b4394903f450d5d338dcf82 @karmajunkie committed Jan 17, 2012
Showing with 1 addition and 3 deletions.
  1. +1 −3 lib/commando/command.rb
@@ -76,7 +76,6 @@ def perform!
def perform
raise "You need to define the perform block for #{self.class.name}" unless self.class.perform_block
- debugger
self.instance_exec(&self.class.perform_block)
end
@@ -85,14 +84,13 @@ def id
end
def method_missing(method, *args)
- puts "method missing"
method_root = method.to_s.gsub(/=$/, "")
if method.to_s[/=$/]
self.attributes[method_root] = args.first
elsif attributes.has_key?(method_root)
self.attributes[method]
else
- #super
+ super
end
end
end

0 comments on commit c4c93e6

Please sign in to comment.