Permalink
Browse files

Using #extract_details in PartialRenderer, too!

  • Loading branch information...
1 parent 2e3eb25 commit 552df29cc849500b6e2cbc4186e23c330909ae8e @apotonick apotonick committed with josevalim Sep 22, 2011
@@ -22,8 +22,6 @@ def extract_details(options)
details
end
-
-
def extract_format(value, details)
if value.is_a?(String) && value.sub!(formats_regexp, "")
ActiveSupport::Deprecation.warn "Passing the format in the template name is deprecated. " \
@@ -268,7 +268,7 @@ def setup(context, options, block)
@options = options
@locals = options[:locals] || {}
@block = block
- @details = options.slice(:formats, :locale, :handlers)
+ @details = extract_details(options)
if String === partial
@object = options[:object]

0 comments on commit 552df29

Please sign in to comment.