This project is archived and is in readonly mode.
Named Scope respond_to? error coercing to array.
-
Tom Lea
This could be a Ruby version issue... I'm running...
ruby 1.8.7 (2008-06-20 patchlevel 22) [i686-darwin9]Seems to be OK on 1.8.5 and 1.9... is anyone else seeing this?
Contrived none rails example of the behaviour:
class A def initialize(a) @a = a end def respond_to?(sym) super end def to_ary @a end end [1,2,3] & A.new([1,2,3,4]) # => # ~> -:15:in `respond_to?': wrong number of arguments (2 for 1) (ArgumentError) # ~> from -:15:in `&' # ~> from -:15 -
Repository
- State changed from new to resolved
(from [3724dafe71f4afb2ca9f4d7d2526b228aa6c05a3]) Fix incorrect signature for NamedScope#respond_to? [#852 Named Scope respond_to? error coercing to array. state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...
-
Repository
(from [76886789ac73f25744cd2eced5416918eab1bdc6]) Fix incorrect signature for NamedScope#respond_to? [#852 Named Scope respond_to? error coercing to array. state:resolved]
Signed-off-by: Pratik Naik pratiknaik@gmail.com http://github.com/rails/rails/co...
