This project is archived and is in readonly mode.

#726 ✓committed
Paweł Kondzior

ActiveSupport OptionMerger to merge lambdas

Reported by Paweł Kondzior | July 30th, 2008 @ 12:59 PM | in 2.x

Right now it is imposible to use with_options when we have named_scope with lambdas example:

with_options(:include => [:foo]) do |options|

options.named_scope :order_by, lamdba { |order| { :order => order }

end

This patch will allow ActiveSupport.OptionMerger to deep_merge lambda expressions.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages