News from the edge of Rails.

What's New in Edge Rails #58

Weeks of February 11 - February 25, 2013

  • 9d9b22f4 is another tweak to loading, reversing some earlier decisions. Autoload paths and eager load paths will be separate for Rails 4.0 after all.
  • c9909db9 drops XML parsing from ActionDispatch. If you need it, you can pick upt he new actionpack-xml_parser gem.
  • d3688e02 removes the auto-explain option for ActiveRecord. You can still call explicitly ActiveRecord::Relation#explain. I’ll miss this, but I know most Rails folks prefer not to think about the database.

What's New in Edge Rails #57

Weeks of January 8 - February 10, 2013

  • The BestStandardsSupport middleware is obsolete and removed as of 3bccd123.
  • a712e08e fixes the case of comparing numeric values to string columns, which is a problem with MySQL for the most part.

What's New in Edge Rails #54

Weeks of January 7 - January 13, 2013

  • 88cc1688 merges in the latest Rails security fixes. If you didn’t already know about them it’s probably too late.
  • Starting with 3e1ed781 performance tests are removed to a separate rails-performance_tests gem.
  • 2549a3b0 deprecates update_attributes in favor of update.

What's New in Edge Rails #53

Weeks of December 31, 2012 - January 6, 2013

  • 44930b2d is the fix for the recent (fairly unlikely) SQL injection vulnerability in Active Record.
  • cb2bd4aa merges in work to replace update_attributes with update.
  • 009873ae solidifies Rails treatment of executables: “Introduce ./bin for your app’s executables: bin/bundle, bin/rails, bin/rake. Executable scripts are versioned code like the rest of your app. To generate a stub for a bundled gem: ‘bundle binstubs unicorn’ and ‘git add bin/unicorn’”.

What's New in Edge Rails #52

Weeks of December 24 - December 30, 2012

After anticipating Rails 4 for a year, it feels close to me. I’d be amazed if we weren’t playing with it by RailsConf.

  • 61b91c4c removes the /bin directory from the default .gitignore. Seldom has a one-line change generated so much heated discussion. My point of view? I never use the default .gitignore unchanged and neither should you. If you don’t want to check in /bin, ignore it yourself.
  • f75addd0 introduces assert_not foo to replace assert !foo.

What's New in Edge Rails #51

Weeks of December 17 - December 23, 2012

  • f6bbc3f5 adds app/models/concerns and app/controllers/concerns to the load path. This is the change that supports the officially blessed way to put fat models on a diet.
  • Rails supports the PostgreSQL int4range and int8range data types directly as of 9a4a095e.
  • Support for email obfuscation was removed from the mail_to helper in cf9d9450. There’s a new actionview-encoded_mail_to gem if you still need it.
  • 86c5cea9 cleans up some of the documentation on controller-specific assets, a perennial source of confusion.
  • Built-in background jobs support was stripped out of master at f9da785d; it’ll be worked on in a branch and won’t ship with Rails 4.0.

What's New in Edge Rails #49

Weeks of December 3 - December 9, 2012

  • The venerable schema_migrations table gets some new metadata in 0a5afa22, including a fingerprint and timestamp.
  • f02d2185 builds on this to add full migration history to schema.rb.
  • Active Record can use NOT in relation building as of de75af7ac, so you can say things like Customer.where.not(:name => 'Joe'). (The original commit also included LIKE support, but that was removed in 8d02afea5).
  • 9d62e048 renames all action callbacks from *_filter to *_action. Seems like pointless jerking around to me, but whatever.