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
jammanbo has quit [Quit: Leaving.]
lgierth has quit [Quit: Ex-Chat]
jordanyee has joined #datamapper
viranch has quit [Ping timeout: 240 seconds]
viranch has joined #datamapper
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #datamapper
|Kev| has quit [Ping timeout: 240 seconds]
St1gma has quit [Ping timeout: 252 seconds]
|Kev| has joined #datamapper
jammanbo has joined #datamapper
St1gma has joined #datamapper
mbj has joined #datamapper
jammanbo has quit [Quit: Leaving.]
jammanbo has joined #datamapper
mbj has quit [Ping timeout: 264 seconds]
mkristian has joined #datamapper
mbj has joined #datamapper
mkristian_ has joined #datamapper
viranch has quit [Ping timeout: 276 seconds]
viranch has joined #datamapper
mkristian_ has quit [Quit: bye]
mkristian has quit [Quit: bye]
mkristian has joined #datamapper
xargoon has quit [Ping timeout: 276 seconds]
xargoon has joined #datamapper
mikecmpbll has quit [Read error: Operation timed out]
<jammanbo> Can a has n cross repositories?
<jammanbo> User is in one repo, Session in another, User has n, :sessions. I can read a Session and a User directly just fine, but it gets confused when I ask it for @user.sessions.
<jammanbo> looks in wrong repo; chokes on properties.
<jammanbo> makes me feel very violent
<onewheelskyward> You've set your storage names?
<onewheelskyward> I'm pretty sure I'm doing this
<jammanbo> @!&**$
<jammanbo> WTF is that option not documented
<onewheelskyward> Yep I'm doing it, and it works fine.
<jammanbo> I wasn't setting the repository on the association
<jammanbo> Have it working now.
<onewheelskyward> On the association? That's neat. I use this: def self.default_repository_name
<onewheelskyward> in my model.
<onewheelskyward> Otherwise it assumes everything is in your default repo.
<jammanbo> Yeah, that's what I'd tried. That makes it possible to do User.first and Session.first and hit the right repos. But when I did @a_user.sessions, it was trying to load Sessions from the User repo
<onewheelskyward> oh weird
<onewheelskyward> I probably don't use that way of finding.
<jammanbo> Have to manually tell it where to find sessions, i.e. this in user.rb
<jammanbo> has n, :sessions, repository: :default
<jammanbo> DM may yet kill me :/
jammanbo has quit [Quit: Leaving.]
<onewheelskyward> okbai!
mikecmpbll has joined #datamapper
mikecmpbll has quit [Quit: i've nodded off.]
mikecmpbll has joined #datamapper
mbj has quit [Ping timeout: 265 seconds]
mkristian has quit [Quit: bye]
mbj has joined #datamapper
postmodern has quit [Quit: Leaving]
postmodern has joined #datamapper
rikai has quit [Quit: No Ping reply in 180 seconds.]
rikai has joined #datamapper
rikai has quit [Changing host]
rikai has joined #datamapper
mbj has quit [Quit: leaving]
lgierth has joined #datamapper