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).