lib/backgrounded/class_methods.rb in backgrounded-0.7.0 vs lib/backgrounded/class_methods.rb in backgrounded-0.7.1
- old
+ new
@@ -8,9 +8,10 @@
method_basename, punctuation = method.to_s.sub(/([?!=])$/, ''), $1
backgrounded_method = "#{method_basename}_backgrounded#{punctuation}"
class_eval do
define_method backgrounded_method do |*args|
Backgrounded.handler.request(self, method, *args)
+ nil
end
end
end
cattr_accessor :backgrounded_options
self.backgrounded_options ||= {}
\ No newline at end of file