Groups
Groups
Sign in
Groups
Groups
Ruby on Rails: Talk
Conversations
About
Send feedback
Help
New alternatives for rails/init.rb in Rails 3 gems
25 views
Skip to first unread message
turkan
unread,
Jul 27, 2010, 6:09:52 AM
7/27/10
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Talk
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:
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?
Reply all
Reply to author
Forward
0 new messages