#844 open
Juho

Hobo create_for action changes the default find scoping

Reported by Juho | November 8th, 2010 @ 11:03 AM | in Hobo 1.1

It seems hobo makes a default scope for find when inside create_for_owner. This is very confusing because it changes the behavior of Model.count. I stumbled upon this in a chained write method. The fact should at least be clearly documented somewhere.

(rdb:1) p current_scoped_methods
{:find=>{:order=>nil, :limit=>nil, :include=>nil, :conditions=>"\"model\".owner_id = 43", :readonly=>false}, :create=>{"owner_id"=>43}}

Comments and changes to this ticket

  • Bryan Larsen

    Bryan Larsen November 15th, 2010 @ 06:47 PM

    • State changed from “new” to “open”
    • Milestone set to Hobo 1.1
    • Tag changed from defect to doc
    • Milestone order changed from “197917” to “0”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Tags

Pages