Permalink
Browse files

Merge pull request #15917 from luke-gru/actionview_perf

remove Set.new from DetailsKey::get, impacts rendering overhead
  • Loading branch information...
rafaelfranca committed Jul 16, 2014
2 parents d12b30f + 4955c04 commit b5fbcc5d52f4e66e7d419b4e6c0172c4ee05ca6c
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionview/lib/action_view/lookup_context.rb
@@ -66,7 +66,7 @@ class DetailsKey #:nodoc:
def self.get(details)
if details[:formats]
details = details.dup
syms = Set.new Mime::SET.symbols
syms = Mime::SET.symbols
details[:formats] = details[:formats].select { |v|
syms.include? v
}

0 comments on commit b5fbcc5

Please sign in to comment.