dkubb changed the topic of #datamapper to: Datamapper v1.2.0 | Mailing List: http://is.gd/aa9D | Logs: http://is.gd/qWAL7V | DataMapper 2 Renamed to ROM, see #rom-rb for development
brianpWins has quit [Quit: brianpWins]
lgierth has quit [Quit: Ex-Chat]
zombor_ has quit [Read error: Connection reset by peer]
zombor_ has joined #datamapper
zombor_ has quit [Remote host closed the connection]
zombor_ has joined #datamapper
zombor_ has quit [Remote host closed the connection]
zombor_ has joined #datamapper
zombor_ has quit [Ping timeout: 246 seconds]
dkubb has quit [Quit: Linkinus - http://linkinus.com]
dkubb has joined #datamapper
zombor_ has joined #datamapper
zombor_ has quit [Ping timeout: 272 seconds]
zombor_ has joined #datamapper
zombor_ has quit [Ping timeout: 265 seconds]
zombor_ has joined #datamapper
zombor_ has quit [Ping timeout: 245 seconds]
mbj has quit [Ping timeout: 246 seconds]
mbj has joined #datamapper
zombor_ has joined #datamapper
zombor_ has quit [Ping timeout: 272 seconds]
mbj has quit [Ping timeout: 245 seconds]
zombor_ has joined #datamapper
zombor_ has quit [Ping timeout: 252 seconds]
kalleth_ is now known as kalleth
mbj has joined #datamapper
mbj has quit [Ping timeout: 240 seconds]
mikecmpbll has joined #datamapper
mbj has joined #datamapper
postmodern has joined #datamapper
kleech has joined #datamapper
bitmand has joined #datamapper
zombor_ has joined #datamapper
zombor_ has quit [Ping timeout: 248 seconds]
<bitmand> I have an app using datamapper - all is great. But I want a completely different app to use the same database and models - can I have 2 apps running with the same set of datamapper models? (exactly the same - and of course I need to make sure that they are always in sync ) Or am I risking some sort of lock/race condition/etc ?
<mikecmpbll> bitmand: shouldn't be any different to using any other ORM
<bitmand> mikecmpbll: not sure I follow - you mean if I had "something else" query the database?
<mikecmpbll> i meant, it's not really got anything to do with datamapper :)
<bitmand> oh
<bitmand> even better :)
<mikecmpbll> you're just accessing a database ..
zombor_ has joined #datamapper
zombor_ has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #datamapper
dberlinger_away is now known as danielberlinger
danielberlinger has quit [Quit: Leaving...]
postmodern has quit [Quit: Leaving]
pietia has joined #datamapper
pietia has left #datamapper [#datamapper]
mikecmpbll has quit [Read error: Operation timed out]
akasper has joined #datamapper
lfox has joined #datamapper
akasper has quit [Quit: Leaving.]
akasper has joined #datamapper
akasper has quit [Client Quit]
lfox has quit [Ping timeout: 265 seconds]
knowtheory has quit [Quit: Computer has gone to sleep]
zombor_ has joined #datamapper
zombor_ has joined #datamapper
zombor_ has quit [Changing host]
zombor_ is now known as zombor
rsim has joined #datamapper
lfox has joined #datamapper
kleech has quit [Remote host closed the connection]
mikecmpbll has joined #datamapper
kleech has joined #datamapper
akasper has joined #datamapper
kleech has quit [Remote host closed the connection]
mikecmpbll has quit [Quit: Computer has gone to sleep.]
kleech has joined #datamapper
knowtheory has joined #datamapper
knowtheory has quit [Quit: Computer has gone to sleep]
knowtheory has joined #datamapper
knowtheory has quit [Read error: Connection reset by peer]
knowtheo1y has joined #datamapper
knowtheo1y has quit [Quit: Computer has gone to sleep]
knowtheory has joined #datamapper
knowtheory has quit [Ping timeout: 246 seconds]
rsim has quit [Quit: Leaving.]
knowtheory has joined #datamapper
knowtheory has quit [Client Quit]
knowtheory has joined #datamapper
knowtheory has quit [Ping timeout: 246 seconds]
lfox has quit [Quit: ZZZzzz…]
rsim has joined #datamapper
lfox has joined #datamapper
rsim has quit [Ping timeout: 245 seconds]
lfox has quit [Ping timeout: 272 seconds]
mikecmpbll has joined #datamapper
kleech has quit [Remote host closed the connection]
knowtheory has joined #datamapper
mbj has quit [Ping timeout: 272 seconds]
kleech has joined #datamapper
kleech has quit [Ping timeout: 265 seconds]
mbj has joined #datamapper
knowtheory has quit [Quit: Computer has gone to sleep]
knowtheory has joined #datamapper
knowtheory has quit [Read error: Connection reset by peer]
kleech has joined #datamapper
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kleech has quit [Remote host closed the connection]
lfox has joined #datamapper
rsim has joined #datamapper
postmodern has joined #datamapper
micho has joined #datamapper
<micho> hi! I am updating an attribute of my Datamapper object - it works only if some conditions are fulfilled (simple if). In another case it returns false, and doesn't update. I want to put it together with default update method, so: if in update method that specific parameter will be updated, I want to check the condition and update or not. As far as I did now, I can rewrite setter to myvalue (update calls setters for every param). Is
<micho> it possible to return false value to update, if "my" updating will fail? The return value of setter is obviously not a good idea...
<Cinchy> micho: [24d 3h 45m 20s ago] <dkubb> it's because of how sinatra works. each time you call the #user method you get a new instance back, so the first time it sets the age to 25, then the next time you get a new instance and call #save! on it
<Cinchy> micho: [24d 3h 44m 47s ago] <dkubb> you can probably use @user ||= User.first(name: params[:name]) within the user method to make sure you use the same instance
zombor has quit [Remote host closed the connection]
kleech has joined #datamapper
micho has quit [Quit: Leaving]
lfox has quit [Quit: ZZZzzz…]