lib/abstract_notifier/base.rb in abstract_notifier-0.3.1 vs lib/abstract_notifier/base.rb in abstract_notifier-0.3.2

- old
+ new

@@ -78,10 +78,10 @@ AbstractNotifier.async_adapter end end def default(method_name = nil, **hargs, &block) - return @defaults_generator = block if block_given? + return @defaults_generator = block if block return @defaults_generator = proc { send(method_name) } unless method_name.nil? @default_params = if superclass.respond_to?(:default_params)