Re: [Rails-core] Reloadable modules

2006-06-07 Thread Trevor Squires
uring development so it's okay with me. I'm not saying this patch is without merit - just that you can work around the issue without having to tinker with the way that rails loads stuff now. Regards, Trevor -- Trevor Squires http://somethinglearned.com On 7-Jun-06, at 8:14 PM,

Re: [Rails-core] Configuration of libraries and model classes

2006-04-04 Thread Trevor Squires
Hi Pete, class Foo include Reloadable::Subclasses end class Bar < Foo end Bar will be reloaded on each request, while the superclass Foo will not. Regards, Trevor -- Trevor Squires http://somethinglearned.com On 3-Apr-06, at 11:43 PM, Pete Yandell wrote: Let me sharpen up my fi

Re: [Rails-core] reloadable classes for other base classes than the built-ins

2006-03-01 Thread Trevor Squires
Jon, do the new Reloadable and Reloadable::Subclasses modules in edge rails (and I assume to be included in 1.1) help you? Regards, Trevor -- Trevor Squires http://somethinglearned.com On 1-Mar-06, at 8:00 PM, Jon Tirsen wrote: I'm working on the plugin for RBatis and a new l

Re: [Rails-core] [3795] render_component doesn't work with modules?

2006-02-10 Thread Trevor Squires
e... Regards, Trevor On 10-Feb-06, at 7:27 AM, Rick Olson wrote: On 2/10/06, Trevor Squires <[EMAIL PROTECTED]> wrote: Hi Nathaniel, I'm using a version of edge (not the most recent, but after module namespace support was improved) and I use render_component into a module namespace

Re: [Rails-core] [3795] render_component doesn't work with modules?

2006-02-10 Thread Trevor Squires
lman/listinfo/rails-core ___ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core -- Trevor Squires http://somethinglearned.com ___ Rails-core m

[Rails-core] proposed bugfix/patch: ActiveRecord cross-module associations

2006-02-01 Thread Trevor Squires
le) "Foo" and spits out "FooWibble". I've included a patch below that solves the problem by treating type_names that are prefixed with '::' differently. I'd appreciate any feedback (or a note saying the patch was applied :- P ) Regards, Trevor -- Trev

Re: [Rails-core] edge rails - strange issue with AR based sessions

2006-01-31 Thread Trevor Squires
uh-oh - Ulysses and I have been working on a different fix for that... Trevor On 31-Jan-06, at 7:19 PM, David Heinemeier Hansson wrote: we recently updated our edge-rails to see about the improved module namespace support. However, I'm getting a strange issue. Namely that in the console I ca

[Rails-core] edge rails - strange issue with AR based sessions

2006-01-31 Thread Trevor Squires
Hi, we recently updated our edge-rails to see about the improved module namespace support. However, I'm getting a strange issue. Namely that in the console I can do: CGI::Session::ActiveRecordStore::Session But if try to do that in a controller I get an uninitialized constant error.

Re: [Rails-core] call a method once per page request, confirmed problem

2006-01-12 Thread Trevor Squires
hod to the request. It saves having to go back and define accessors for every 'expensive' item being tracked. in vendor/plugins/request_attributes/init.rb ActionController::AbstractRequest.class_eval do def attributes @request_attributes ||= Hash.new() end end Regard

[Rails-core] connection specifications borked in changeset 3218?

2005-12-05 Thread Trevor Squires
Hi, it looks like a recent change (3218) has borked connection specifications in some way. When I run my unit tests it fails because even though it's connection to the test database it's using the username (and I presume, password) of the *development* user. This does not occur in 3217

Re: [Rails-core] Changeset 3169 causing errors in my model

2005-11-24 Thread Trevor Squires
Hi, this issue went away for me after svn upping to the latest rev (3188 for me). Regards, Trevor On 24-Nov-05, at 11:07 AM, Francois Beausoleil wrote: Hi ! I have a little problem here. r3169, "Enable warnings on first load only. File which are loaded but raise an exception are not add