Consider getting rid of #whatever(store, ...)'s optional store argument
Reported by Yurii Rashkovskii | May 3rd, 2008 @ 09:12 AM
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
Comments and changes to this ticket
-
Yurii Rashkovskii May 3rd, 2008 @ 09:13 AM
- Assigned user changed from Oleg Andreev to Yurii Rashkovskii
-
Yurii Rashkovskii May 4th, 2008 @ 12:15 PM
or even something like this
@another_store.scope { User.find } @another_store.scope do View.create!("hello") { ... } end
-
Yurii Rashkovskii May 10th, 2008 @ 12:35 PM
by the way, Document#store implementation might be refactored and moved to StrokeDB.default_store
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.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
StrokeDB is an embeddable distributed document database written in Ruby