In Rails 3 the rails/init.rb in gems is not automatically executed
anymore (see
https://rails.lighthouseapp.com/projects/8994/tickets/3745-railsinitrb-is-not-being-called-anymore).
As I see there a now two options:
- Put scripts in config/initializers.
- 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?