Also if you're looking for some alternate method names, wouldn't the
use of "alias" help?

On Sun, Oct 12, 2008 at 12:31 PM, Andrew Kaspick <[EMAIL PROTECTED]> wrote:
> Why wouldn't you just do obj.client.name and obj.client.address if
> you're looking to keep some context in the names?
>
> On Sat, Oct 11, 2008 at 2:06 PM, Daniel Schierbeck
> <[EMAIL PROTECTED]> wrote:
>>
>> I've submitted a patch to Lighthouse which makes it possible to prefix
>> delegation methods, i.e.:
>>
>>  delegate :name, :address, :to => :client, :prefix => true
>>
>> Which would create the methods #client_name and #client_address. It's
>> also possible to give a custom prefix, e.g. :customer.
>>
>> Could I get someone to take a look at this patch?
>>
>>
>>  <http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/
>> 984>
>>
>> >>
>>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to