Edge Rails: Array#random_element

Published on

Array#rand is deprecated in favor of Array#random_element and will be removed in Rails 3. As per the comment added to the commit: Array#rand is deprecated because it masks Kernel#rand within the Array class itself, which may be used by a 3rd party library extending Array in turn. See https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4555

Edge Rails Updates

Published on

New edge rails deprecations: Time#last_year is deprecated in favor of Time#prev_year Time#last_month is deprecated in favor of Time#prev_month Date#last_year is deprecated in favor of Date#prev_year Date#last_month is deprecated in favor of Date#prev_month New methods/aliases: Date#sunday: Returns a new Date representing the end of this week Time#sunday: Returns a new Time representing the end of this … Continue reading Edge Rails Updates