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
lfox has joined #datamapper
lgierth has quit [Quit: Ex-Chat]
rsim has quit [Quit: Leaving.]
zombor has quit [Remote host closed the connection]
lfox has quit [Quit: ZZZzzz…]
postmodern has quit [Quit: Leaving]
zombor has joined #datamapper
rsim has joined #datamapper
zombor has quit [Remote host closed the connection]
rsim has quit [Quit: Leaving.]
lfox has joined #datamapper
mbj has joined #datamapper
pikislabis has joined #datamapper
pikislabis has quit [Client Quit]
lfox has quit [Quit: ZZZzzz…]
mbj has quit [Ping timeout: 264 seconds]
mbj has joined #datamapper
mbj has quit [Read error: Connection reset by peer]
postmodern has joined #datamapper
mbj has joined #datamapper
postmodern has quit [Quit: Leaving]
kapowaz has quit [Remote host closed the connection]
grandy has quit [Remote host closed the connection]
abuiles has quit [Remote host closed the connection]
priyam_ has quit [Remote host closed the connection]
cbuxton_ has quit [Remote host closed the connection]
kapowaz has joined #datamapper
abuiles has joined #datamapper
grandy has joined #datamapper
priyam_ has joined #datamapper
cbuxton_ has joined #datamapper
lfox has joined #datamapper
rsim has joined #datamapper
Cristian__ has joined #datamapper
<Cristian__> Hello! We're developing a Sinatra app in which we have access to this data: env['warden'].user But when we try to access it from within a DataMapper model object, an exception is raised saying that env is not defined.
<Cristian__> Do you have any idea on why this might be? How should we access user environment objects from within DataMapper resourses?
<mbj> Cristian__: basically your model instances dont have acess to the rack env. Thats the idea of models.
<mbj> Cristian__: models dont know about http.
<Cristian__> I suspected something like was the case. Is there any workaround? Basically we want to verify for each model object that it belongs to the currently logged in user.
<Cristian__> Before updating/destroying the object, that is.
<mbj> Cristian__: service object.
<mbj> Cristian__: or inject env (would not like this).
<Cristian__> is service object a pattern?
<mbj> Cristian__: somehow yeah
<Cristian__> Ok, I'll look into it. Thanks a ton!
<Cinchy> [URL] ruby - How can I have a DataMapper callback happen in a transaction? - Stack Overflow
Cristian__ has quit [Ping timeout: 250 seconds]
rsim has quit [Ping timeout: 245 seconds]
zombor has joined #datamapper
akasper has joined #datamapper
rsim has joined #datamapper
g0bl1n has joined #datamapper
rsim has quit [Quit: Leaving.]
g0bl1n has quit [Quit: Ex-Chat]
rsim has joined #datamapper
_br_ has quit [Ping timeout: 245 seconds]
_br_ has joined #datamapper
zombor has quit [Remote host closed the connection]
rsim has quit [Quit: Leaving.]
zombor has joined #datamapper
zombor has quit [Read error: Connection reset by peer]
zombor_ has joined #datamapper
zombor_ has quit [Ping timeout: 240 seconds]
zombor has joined #datamapper
zombor has quit [Ping timeout: 248 seconds]
zombor has joined #datamapper
zombor has quit [Read error: Connection reset by peer]
zombor has joined #datamapper
rsim has joined #datamapper
lnormous has joined #datamapper
rsim1 has joined #datamapper
rsim has quit [Ping timeout: 245 seconds]
postmodern has joined #datamapper
lnormous has quit [Ping timeout: 246 seconds]
lfox has quit [Quit: ZZZzzz…]
akasper has quit [Quit: Leaving.]
lnormous has joined #datamapper
_jesse__ has joined #datamapper
_jesse__ is now known as _jesse_
rsim1 has quit [Quit: Leaving.]
rsim has joined #datamapper
mbj has quit [Quit: leaving]
rsim has quit [Quit: Leaving.]
mkf has quit [Quit: leaving]
mkf has joined #datamapper
zombor has quit [Remote host closed the connection]