Re: @open_transactions initialized with nil

Frederick Cheung
2009-02-13T10:34:24Z

On 13 Feb 2009, at 09:07, dbreuer wrote:
>
>
> Is there a reason to init the variable via the attribute accessor?
>
> 149        def open_transactions
> 150          @open_transactions ||= 0
> 151        end
>

I suspect not. You might find the rubyonrails-core list (or the #rails-
contrib irc channel) can provide a more definitive answer.

Fred

--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---