remove unncessary is_a?(Hash) check

This commit is contained in:
Tee Parham
2012-06-12 10:38:32 -07:00
parent d956507482
commit c898e3daf9
2 changed files with 2 additions and 4 deletions

View File

@@ -53,9 +53,7 @@ module ActiveModel
@options[:unique_values] = {}
array = serializable_array.map do |item|
if item.is_a?(Hash)
item
elsif item.respond_to?(:serializable_hash)
if item.respond_to?(:serializable_hash)
item.serializable_hash
else
item.as_json