Hmm, you're right, they both print out
DataMapper::Adapters::AppEngineAdapter
true
Using %= debug % in a template for Rails of course.
I came to my conclusion because I couldn't read back any of the
records that I had previously manually entered into datastore using
console.sh. Ok, I'll press
How about adopting the ActiveRecord convention of save that returns a
boolean and save! that raises an exception?
On Mon, Jul 19, 2010 at 11:46 PM, David Masover ni...@slaphack.com wrote:
On Sunday, July 18, 2010 11:59:41 am Martin Gamsjaeger wrote:
I think the motivation behind DM not
Got this same issue but having difficulty tracking down where the
require statement is placed in Merb? I've tried adding it to the usual
places but the failure is still the same as this ticket below..
IME, the meanings of safe vs. bang methods and what class of errors do
exceptions represent have always been, at their core, a conscious
philosophical difference between DM and AR.
One (much older) school of thought: exceptions are exceptional behaviour --
they typically represent
Very interesting point. So in the end you are recommending to raise only in
order to prevent further damage right?
In my current project there are quite a lot .saves and failing saves can
lead there in a lot of cases to unpredictable/unwanted behaviour. (And also
did in the recent time...) But
Another suggestion would be more info on exactly what paranoid does in
terms of the get methods and destroy methods (i.e. nothing to destroy,
but adds checks against the pranoiddeleted boolean or datetime being
null).
More info about repositories and how to change them. Perhaps an
example case
You tried the obvious: u = People.first; u.houses.all(:order =
[:bought_date.asc])? I'm not an expert (yet) but seems like it should
work.
--
You received this message because you are subscribed to the Google Groups
DataMapper group.
To post to this group, send email to
Agreed, I would lve a way to globally disable this instead of
having to monkey-patch :)
--
You received this message because you are subscribed to the Google Groups
DataMapper group.
To post to this group, send email to datamap...@googlegroups.com.
To unsubscribe from this group, send email