Ruby on Rails Tuesday, August 5, 2014

On Aug 4, 2014, at 9:57 PM, Carlos Mathiasen <gunmath987@gmail.com> wrote:

> Hi Scott, it is an interesting question. I was seeing in the source code and I found that[0]. Basically, rails ask to object if it is persisted or not to create the id.
> But this is a private method, then you should need to implement this logic in a helper(?) or something.

Re-implementing would completely defeat the purpose of not using my own id, so I'll just use my own. Thanks for the pointer to the implementation.

--
Scott Ribe
scott_ribe@elevated-dev.com
http://www.elevated-dev.com/
(303) 722-0567 voice




--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/98D3A745-C128-4152-A1DC-BC3E7DD0E600%40elevated-dev.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment