Re: [Rails-core] Rails 3 and Gem Plugins

2010-01-21 Thread Mikel Lindsaar
On Thu, Jan 21, 2010 at 1:52 AM, Mislav Marohnić mislav.maroh...@gmail.comwrote: I suggest you write a post on how Railtie subclasses look like, what they can do and what are the options of hooking into the initializer other than simply appending new initialization steps to the list. You can

Re: [Rails-core] Rails 3 and Gem Plugins

2010-01-21 Thread Mikel Lindsaar
On Thu, Jan 21, 2010 at 9:48 PM, Mikel Lindsaar raasd...@gmail.com wrote: You can also look at the latest docs on railtie.rb that I just added at: http://tinyurl.com/yc2545y Having just re-read that again now, it needs much more work, for example it omits to mention that you need to require

Re: [Rails-core] Rails 3 and Gem Plugins

2010-01-21 Thread Sam Pohlenz
On 20/01/2010, at 8:18 PM, Yehuda Katz wrote: The easiest thing to do is to put the Railtie subclass in lib/my_lib.rb itself. The bundler will require the file, similar to how config.gem worked in Rails 2.3. Is this actually the case at the moment? As far as I can see, there's no

Re: [Rails-core] Rails 3 and Gem Plugins

2010-01-21 Thread Owen Dall
Yes, a post on this would be very useful. On Wed, Jan 20, 2010 at 9:52 AM, Mislav Marohnić mislav.maroh...@gmail.comwrote: On Wed, Jan 20, 2010 at 10:48, Yehuda Katz wyc...@gmail.com wrote: Another option would be to move it into lib/my_lib/railtie.rb (or whatever) and require it from

Re: [Rails-core] Rails 3 and Gem Plugins

2010-01-20 Thread Mislav Marohnić
On Wed, Jan 20, 2010 at 04:45, Yehuda Katz wyc...@gmail.com wrote: I am working on a blog post now, but the basic idea is that ActionController, ActiveRecord, etc. are all plugins now. So anything that they can do, you can do too. During the boot process, their respective railtie.rb scripts

Re: [Rails-core] Rails 3 and Gem Plugins

2010-01-20 Thread Yehuda Katz
This is one of the things we're working out. The easiest thing to do is to put the Railtie subclass in lib/my_lib.rb itself. The bundler will require the file, similar to how config.gem worked in Rails 2.3. Another option would be to move it into lib/my_lib/railtie.rb (or whatever) and require

Re: [Rails-core] Rails 3 and Gem Plugins

2010-01-20 Thread Mislav Marohnić
On Wed, Jan 20, 2010 at 10:48, Yehuda Katz wyc...@gmail.com wrote: Another option would be to move it into lib/my_lib/railtie.rb (or whatever) and require it from my_lib.rb. You can then do require my_lib/railtie if defined?(Rails), since the Rails constant will always be required before

[Rails-core] Rails 3 and Gem Plugins

2010-01-19 Thread Sam Granieri
Will there be a way for rails 3 to load plugins from gems that have been installed via the bundler? -- You received this message because you are subscribed to the Google Groups Ruby on Rails: Core group. To post to this group, send email to rubyonrails-c...@googlegroups.com. To unsubscribe from

Re: [Rails-core] Rails 3 and Gem Plugins

2010-01-19 Thread Ryan Bigg
Could you elaborate? An example on what gem you're trying to use would be helpful! 2010/1/20 Sam Granieri s...@samgranieri.com Will there be a way for rails 3 to load plugins from gems that have been installed via the bundler? -- You received this message because you are subscribed to the

Re: [Rails-core] Rails 3 and Gem Plugins

2010-01-19 Thread Yehuda Katz
Yes. I am working on a blog post now, but the basic idea is that ActionController, ActiveRecord, etc. are all plugins now. So anything that they can do, you can do too. We just need to document how it works (if you're interested, check out the railtie.rb files in the various components). Yehuda

Re: [Rails-core] Rails 3 and Gem Plugins

2010-01-19 Thread Martin Gamsjaeger
You can also have a look at http://github.com/dkubb/rails3_datamapper for an example of a gem/plugin (whatever the difference is) that works with rails3 cheers snusnu On Wed, Jan 20, 2010 at 04:45, Yehuda Katz wyc...@gmail.com wrote: Yes. I am working on a blog post now, but the basic idea is