A Fresh Cup is Mike Gunderloy's software development weblog, covering Ruby on Rails and whatever else I find interesting in the universe of software. I'm a full-time Rails developer and contributor, available for long- or short-term consulting, with solid experience in working as part of a distributed team. If you'd like to hire me, drop me a line. I'm also the author of Rails Rescue Handbook and Rails Freelancing Handbook.

Navigation
« Double Shot #314 | Main | Double Shot #313 »
Wednesday
15Oct2008

Rails 2.2 Deprecations

Rails 2.2 won't be all about new features. The Rails team is also taking advantage of this release to deprecate some existing features. Here's a list of what will be going away in the 2.2 release:

  • The country_select helper has been removed. This is the one most likely to affect existing applications, I think, but it's going away because of arguments over which list of countries to use. The deprecation page points to a couple of replacement plugins.

  • Rails::SecretKeyGenerator has been replaced by ActiveSupport::SecureRandom.
    render_component is deprecated. If you need it, grab the render_components plugin.

  • ActiveRecord::Base.allow_concurrency no longer has any effect. Might as well stop calling it. Remember, though, that ActiveRecord is getting connection pool management.

  • ActiveRecord::Errors.default_error_messages has been deprecated in favor of I18n.translate('activerecord.errors.messages')

  • The %s and %d interpolation syntax for internationalization is deprecated.

  • String#chars has been deprecated in favor of String#mb_chars.

  • Durations of fractional months or fractional years are deprecated. Use Ruby's core +Date+ and +Time+ class arithmetic instead.
  • Reader Comments

    There are no comments for this journal entry. To create a new comment, use the form below.

    PostPost a New Comment

    Enter your information below to add a new comment.

    My response is on my own website »
    Author Email (optional):
    Author URL (optional):
    Post:
     
    Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>