Sunday, December 26, 2010

[Rails] Re: I sit possible to write it in one line Array init + Array loading

Frederick Cheung wrote in post #970761:
> On Dec 26, 9:22am, ivanpoval <ivanpo...@gmail.com> wrote:
>> With ActiveSupport from Rails it's also possible:
>> @providers = @authentications.map(&:provider)
>
> As of ruby 1.8.7 it's built into ruby (no active support required)

1.8.7? I thought it didn't make it in until later. Good to know.

>
> Fred

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org

Sent from my iPhone

--
Posted via http://www.ruby-forum.com/.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate