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 Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
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
