On Apr 29, 10:17 pm, John Merlino <li...@ruby-forum.com> wrote:
> Frederick Cheung wrote in post #995797:
>
> > On Apr 29, 3:04am, John Merlino <li...@ruby-forum.com> wrote:
> >> Settings.session_token_domain}
>
> >> 1) I look in Session class and there is no create! class method. Yet it
> >> works and doesn't throw an exception.
>
> > With so little context it is hard to say.
>
> It inherits from ActiveRecord and I know ActiveRecord doesn't contain a
> create! method.

Wrongo. 
http://api.rubyonrails.org/classes/ActiveRecord/Validations/ClassMethods.html#method-i-create-21

> The only possibility could be then a gem that works as a
> singleton. But what I would love to do is something like: logger.info
> Session.create! and then get output that says that this method is
> defined in such and such class, kind of like a callstack. But of course
> logger.info or logger.error just tells you what the value holds, not
> where it was declared and initialized.

You could step into it with the debugger.

Fred
>
> --
> Posted viahttp://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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to