lib/materialist/materializer/internals/dsl.rb in materialist-3.7.0 vs lib/materialist/materializer/internals/dsl.rb in materialist-3.8.0
- old
+ new
@@ -36,12 +36,12 @@
def sidekiq_options(options)
__materialist_options[:sidekiq_options] = options
end
- def source_key(key, &url_parser_block)
+ def source_key(key, &source_key_parser)
__materialist_options[:source_key] = key
- __materialist_options[:url_parser] = url_parser_block
+ __materialist_options[:source_key_parser] = source_key_parser
end
# This method is meant to be used for cases when the application needs
# to have access to the `payload` that is returned on the HTTP call.
# Such an example would be if the application logic requires all