Ruby on Rails Wednesday, July 2, 2014

Hi,

I'm using 4.1.1

When in console, whenever I make a AR query I see the same log message 2 times 

e.g.

Loading development environment (Rails 4.1.1)

2.1.1 :001 > Category.find(2)

  Category Load (0.9ms)  SELECT  "categories".* FROM "categories"  WHERE "categories"."id" = $1 LIMIT 1  [["id", 2]]

  Category Load (0.9ms)  SELECT  "categories".* FROM "categories"  WHERE "categories"."id" = $1 LIMIT 1  [["id", 2]]


Why is that?  At first I thought my associations where messing things up but this happens for empty models (no associates just a plain old model) also.

--
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/CAG2rwuPZeKBPVcBDs4hhdAEpu_AJB1z1XyON5dAp62%3DEZdwuvw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment