New alternatives for rails/init.rb in Rails 3 gems

In Rails 3 the rails/init.rb in gems is not automatically executed anymore (see #3745 Having rails/init.rb in plugin should generate deprecation warning since it's is not being called anymore - Ruby on Rails - rails). As I see there a now two options: 1. Put scripts in config/initializers. 2. Create a lib/my_gem_name.rb

The second alternative seems to be used for example by devise (http:// github.com/plataformatec/devise). Is that right?