lib/backgrounded.rb in backgrounded-0.7.3 vs lib/backgrounded.rb in backgrounded-0.7.4
- old
+ new
@@ -6,9 +6,13 @@
Object.send(:include, Backgrounded::ClassMethods)
module Backgrounded
class << self
attr_accessor :logger, :handler
+ def method_name_for_backgrounded_options(method_name)
+ method_basename, punctuation = method_name.to_s.sub(/([?!=])$/, ''), $1
+ "#{method_basename}_backgrounded_options"
+ end
end
end
# default handler to the basic in process handler
Backgrounded.handler = Backgrounded::Handler::InprocessHandler.new