Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Implicit :all

#176

Paul Berry reports:

# Article model
scope_out :published, :conditions => ["published_at is not null"]

# this works:
Article.paginate_published :all, :page => "1"

# raises ActiveRecord::RecordNotFound: Couldn't find Article without an ID
Article.paginate_published :page => "1"

I'm thinking of pushing :all implicitly to any finder, not just "paginate" and "paginate_by_*".

Reported by Mislav · January 9th, 2008 @ 12:06 PM

State: resolved
Milestone: none
Assigned to: Mislav Mislav

Activity

  1. Mislav
    Mislav
    • State changed from new to resolved

    What was I thinking? This wasn't a good idea at all. I'll put all my hopes on named_scope

    March 30th, 2008 @ 01:51 PM

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.