Skip to content

Commit

Permalink
use Array#uniq in AM instead of deprecated Array#uniq_by
Browse files Browse the repository at this point in the history
  • Loading branch information
lest committed Dec 24, 2011
1 parent a5fa310 commit b340f88
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion actionmailer/lib/action_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
# Common Active Support usage in Action Mailer
require 'active_support/core_ext/class'
require 'active_support/core_ext/object/blank'
require 'active_support/core_ext/array/uniq_by'
require 'active_support/core_ext/module/attr_internal'
require 'active_support/core_ext/module/delegation'
require 'active_support/core_ext/string/inflections'
Expand Down
2 changes: 1 addition & 1 deletion actionmailer/lib/action_mailer/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ def collect_responses_and_parts_order(headers) #:nodoc:

def each_template(paths, name, &block) #:nodoc:
templates = lookup_context.find_all(name, Array.wrap(paths))
templates.uniq_by { |t| t.formats }.each(&block)
templates.uniq { |t| t.formats }.each(&block)
end

def create_parts_from_responses(m, responses) #:nodoc:
Expand Down

0 comments on commit b340f88

Please sign in to comment.