January 20, 2021
Hot Topics:

Improved Plugin Support in Rails 3

  • By Developer.com Staff

Plugin support in Rails 3 is getting a major overhaul.

Developers for the popular open source Ruby framework are making big changes to the way plugin authors build and install their software.

To better deal with dependencies, Rails plugin developers should make their plugin a gem and have the user install it with a Gemfile.

"This will ensure that Bundler properly calculates the dependencies alongside any other dependencies the user’s app has," blogged wycats over at the Riding the Rails blog.

Also, to override ActionController, ActiveRecord or other Rails frameworks, require them first, then override.

This gives you the opportunity to hook in earlier to the initialization process, but it also means that you should explicitly require the dependencies you need," according to wycats post.

Rails 3 is a major release for the Ruby on Rails team.

View Article

This article was originally published on February 11, 2010

Enterprise Development Update

Don't miss an article. Subscribe to our newsletter below.

Thanks for your registration, follow us on our social networks to keep up-to-date