This project is archived and is in readonly mode.
Having rails/init.rb in plugin should generate deprecation warning since it's is not being called anymore
-
Jeremy Kemper
- Milestone cleared.
- State changed from new to open
- Assigned user set to Carl Lerche
-
Gabe da Silveira
Jeremy, thanks for dropping by. I caught Yehuda on irc and he tells me that the API is changed intentionally. I do believe this needs documentation though, definitely before Rails 3 drops. Deprecation would have been nice, but considering the scope of changes in Rails 3 it doesn't really seem worth it--there will be many breaking changes already.
-
Ryan Bigg
I also noticed this with my by_star plugin. To make it dually compatible between 2.3 and 3.0 I've copied the file to the root folder and it seems to work ok. Should I just have a lib/by_star.rb file and let Rails automatically include that? Is that how it works now?
-
Prem Sichanugrist (sikachu)
- Title changed from rails/init.rb is not being called anymore to Having rails/init.rb in plugin should generate deprecation warning since it's is not being called anymore
@Gabe da Silveira
+1 on the deprecation warning. I believe that Rails 3 is under rapid development, so they forgot to put one in.
@Ryan
After I have followed the irc, I think
lib/by_star.rbshould be a way to go for 3.0 compatibility. -
José Valim
- State changed from open to resolved
- Assigned user changed from Carl Lerche to José Valim
Fixed.