Open technoweenie opened 12 years ago
@mguterl: I thought all I needed was a rails_init.rb
at the root of a gem for a Rails plugin gem? Do you know by chance? I'd like to make sure that works, and then I'll push out a 0.9.1 release.
I'll integrate this into our project right now and I'll get back to you.
On Mon, Dec 5, 2011 at 2:48 PM, rick reply@reply.github.com wrote:
@mguterl: I thought all I needed was a
rails_init.rb
at the root of a gem for a Rails plugin gem? Do you know by chance? I'd like to make sure that works, and then I'll push out a 0.9.1 release.
Reply to this email directly or view it on GitHub: https://github.com/technoweenie/serialized_attributes/issues/9#issuecomment-3022105
From what I can gather, Rails 3 does not automatically load any files other than lib/serializable_attributes/railtie.rb, but that seems overkill as the plugin doesn't need to setup instrumentation or anything like that.
From what I remember Rails 2 will automatically load init.rb for any directories in vendor/plugins.
I was able to get a Rails 3.0 and Rails 2.2 project both working without warnings with the following changes:
https://github.com/technoweenie/serialized_attributes/compare/master...proper_loading_of_plugin
On Mon, Dec 5, 2011 at 2:53 PM, Michael Guterl mguterl@gmail.com wrote:
I'll integrate this into our project right now and I'll get back to you.
On Mon, Dec 5, 2011 at 2:48 PM, rick reply@reply.github.com wrote:
@mguterl: I thought all I needed was a
rails_init.rb
at the root of a gem for a Rails plugin gem? Do you know by chance? I'd like to make sure that works, and then I'll push out a 0.9.1 release.
Reply to this email directly or view it on GitHub: https://github.com/technoweenie/serialized_attributes/issues/9#issuecomment-3022105
I've pushed out
serializable_attributes
0.9.0 to rubygems just now. I renamed it because someone else took it the same name for a separate (but similar gem).Check it out, let me know if there are problems. The library itself has been pretty stable for awhile, so I'd like to get 1.0 out soon.