Skip to content

Commit

Permalink
eliminate a pile of array allocations
Browse files Browse the repository at this point in the history
  • Loading branch information
SamSaffron committed Aug 21, 2013
1 parent 63e2776 commit eb9f3e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def #{attr_name}=(time)
def create_time_zone_conversion_attribute?(name, column)
time_zone_aware_attributes &&
!self.skip_time_zone_conversion_for_attributes.include?(name.to_sym) &&
[:datetime, :timestamp].include?(column.type)
(:datetime == column.type || :timestamp == column.type)
end
end
end
Expand Down

0 comments on commit eb9f3e0

Please sign in to comment.