This project is archived and is in readonly mode.

#5375 ✓resolved

delegate method doesn't allow false for option :prefix

Reported by de_jonas | August 13th, 2010 @ 02:26 PM | in 3.x

I don't know if it is a bug, but i had a small headache therefor ^^

class User < ActiveRecord::Base  
   belongs_to :customer  

class Customer < ActiveRecord::Base  
   has_one :user

   delegate :name, :to => :user, :prefix => nil

works but

   delegate :name, :to => :user, :prefix => false


Edit: I'm using Rails3 RC / Ruby 1.9.2-head

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=""></a>