Skip to content

Commit

Permalink
Prevent calling regexp on symbol in Ruby 1.9 in association_proxy
Browse files Browse the repository at this point in the history
Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information
Ernie Miller authored and lifo committed May 5, 2010
1 parent 743d77f commit 5be4988
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -51,7 +51,7 @@ class AssociationProxy #:nodoc:
alias_method :proxy_respond_to?, :respond_to?
alias_method :proxy_extend, :extend
delegate :to_param, :to => :proxy_target
instance_methods.each { |m| undef_method m unless m =~ /^(?:nil\?|send|object_id|to_a)$|^__|proxy_/ }
instance_methods.each { |m| undef_method m unless m.to_s =~ /^(?:nil\?|send|object_id|to_a)$|^__|proxy_/ }

def initialize(owner, reflection)
@owner, @reflection = owner, reflection
Expand Down

0 comments on commit 5be4988

Please sign in to comment.