[Rails-core] Re: has_many :through scoped association

2009-03-27 Thread Erik Andrejko
There is supposed to be a rewrite in the near future of Actiive Record's with_scope which is the underlying implementation mechanism for named_scopes. It would probably be a good idea to create a ticket in Lighthouse with a patch with failing tests so that they can be addressed when the rewrite h

[Rails-core] Re: nested named_scopes and :order

2009-03-16 Thread Erik Andrejko
Thanks everyone for your input. There is now a ticket: http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/2253-named_scope-and-nested-order-clauses Erik --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[Rails-core] nested named_scopes and :order

2009-03-10 Thread Erik Andrejko
I have a question about peoples opinions about how nested named_scopes should handle :order options. What are your opinions about the correct behavior for the following chained named_scopes? Take the model: class Developer < ActiveRecord::Base named_scope :by_last_name, :order => 'last_name'

[Rails-core] Fix for unexpected current_page? behavior

2008-10-26 Thread Erik Andrejko
I have added a patch to ticket #805 that fixes what I believe is a behavior that violates the principle of least surprise. If the current URI is '/blog/posts' then current_page?(:controller => 'blog', :action => 'posts') returns true as expected. However if the current URI is '/blog/posts?order=

[Rails-core] PATCH render :partial with :object => nil and non nil instance variable

2008-08-28 Thread Erik Andrejko
I have added a patch for the following ticket: http://rails.lighthouseapp.com/projects/8994/tickets/924-render-partial-object-nil-with-instance-variable#ticket-924-1 This fixes the current unexpected behavior when overriding a non nil instance variable with nil when rendering a partial. --~--~-