Displaying 2 results from an estimated 2 matches for "test_d".
Did you mean:
tested
2009 Jul 11
2
offeride :limit named_scope default_scope
Hi,
Rails 2.3.2
class TestD < ActiveRecord::Base
default_scope :limit => 12
named_scope :limit, lambda { |num| { :limit => num} }
end
ruby script/console
>> TestD.all
TestD Load (0.7ms) SELECT * FROM "test_ds" LIMIT 12
=> []
>> TestD.limit(14)
TestD Load (0.3ms) SELECT * FROM "test_ds" LIMIT 12
=> []
Any ideas why the default limit does not get overwritten?
M.
--
Posted via http://www.ruby-forum.com/.
2014 Aug 28
2
Call for testing: OpenSSH 6.7
Must have bolluxed something up in the compile environment - that or
http://www.mindrot.org/openssh_snap/openssh-SNAP-20140828.tar.gz had a
configure tweak that fixed it. All systems tested now build and pass all
tests.
That said - the stupid race condition in that one test is cropping up
sporadically still - I think it's related to the load (or lack thereof) on
the VM host.
With, of