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.

Consider getting rid of #whatever(store, ...)'s optional store argument

#45

May be it is nicer to do it this way:

with_store(@another_store) { User.find(...) }
with_store(@another_store) do
  View.create!("hello") { ... }
end

Reported by Yurii Rashkovskii · May 3rd, 2008 @ 06:12 AM

State: new
Milestone: none
Assigned to: Yurii Rashkovskii Yurii Rashkovskii

Activity

  1. Yurii Rashkovskii
    Yurii Rashkovskii
    • Assigned user changed from Oleg Andreev to Yurii Rashkovskii

    May 3rd, 2008 @ 06:13 AM

  2. Yurii Rashkovskii
    Yurii Rashkovskii

    or even something like this

    @another_store.scope { User.find }
    @another_store.scope do
        View.create!("hello") { ... }
    end
    

    May 4th, 2008 @ 09:15 AM

  3. Yurii Rashkovskii
    Yurii Rashkovskii

    by the way, Document#store implementation might be refactored and moved to StrokeDB.default_store

    May 10th, 2008 @ 09:35 AM

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.