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
lnormous has quit [Read error: Connection reset by peer]
ckrailo has joined #datamapper
ckrailo has quit [Quit: Computer has gone to sleep.]
ckrailo has joined #datamapper
Sylvain1 has quit [Ping timeout: 260 seconds]
banditron has quit [Remote host closed the connection]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
Sylvain1 has joined #datamapper
v1n has quit [Ping timeout: 276 seconds]
ckrailo has quit [Quit: Computer has gone to sleep.]
v1n has joined #datamapper
zombor has quit [Remote host closed the connection]
snusnu has quit [Quit: Leaving.]
zombor has joined #datamapper
zombor has quit [Changing host]
zombor has joined #datamapper
zombor has quit [Ping timeout: 240 seconds]
brianpWins has joined #datamapper
zombor has joined #datamapper
zombor has quit [Ping timeout: 256 seconds]
v1n has quit [Ping timeout: 240 seconds]
Sylvain1 has quit [Read error: Connection reset by peer]
Sylvain1 has joined #datamapper
Sylvain1 has quit [Client Quit]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
Sylvain1 has joined #datamapper
Sylvain1 has quit [Ping timeout: 256 seconds]
noca has joined #datamapper
elskwid_ has joined #datamapper
jpr5 has quit [*.net *.split]
elskwid has quit [*.net *.split]
elskwid_ is now known as elskwid
rsim has joined #datamapper
dkubb has quit [Quit: Linkinus - http://linkinus.com]
elskwid has joined #datamapper
elskwid has quit [Changing host]
Sylvain1 has joined #datamapper
mbj has joined #datamapper
tyranja has left #datamapper ["WeeChat 0.3.9.2"]
mbj has quit [Quit: leaving]
rolfb has joined #datamapper
solnic has joined #datamapper
solnic has quit [Quit: Leaving...]
Sylvain1 has quit [Ping timeout: 264 seconds]
theCrab has joined #datamapper
Sylvain1 has joined #datamapper
solnic has joined #datamapper
Sylvain3 has joined #datamapper
Sylvain1 has quit [Read error: Connection reset by peer]
ngw has joined #datamapper
postmodern has quit [Quit: Leaving]
rolfb has quit [Quit: Leaving...]
Sylvain3 has quit [Ping timeout: 248 seconds]
solnic has quit [Quit: Leaving...]
snusnu has joined #datamapper
solnic has joined #datamapper
Sylvain1 has joined #datamapper
snusnu has quit [Quit: Leaving.]
snusnu has joined #datamapper
ngw has quit [Quit: Bye!]
theCrab has quit [Quit: Sleeping -_-]
mikecmpbll has joined #datamapper
Sylvain1 has quit [Ping timeout: 248 seconds]
mbj has joined #datamapper
mbj_ has joined #datamapper
mbj_ has quit [Client Quit]
Sylvain1 has joined #datamapper
solnic has quit [Quit: Leaving...]
mbj has quit [Read error: Connection reset by peer]
solnic has joined #datamapper
mbj has joined #datamapper
v1n has joined #datamapper
zombor has joined #datamapper
zombor has quit [Changing host]
zombor has joined #datamapper
v1n has quit [Read error: Operation timed out]
mbj has quit [Ping timeout: 276 seconds]
bobocopy has joined #datamapper
mbj has joined #datamapper
solnic has quit [Quit: Leaving...]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
solnic has joined #datamapper
bobocopy has quit [Quit: Leaving.]
bobocopy has joined #datamapper
mikecmpbll has joined #datamapper
bobocopy is now known as akasper
Sylvain1 has quit [Ping timeout: 248 seconds]
v0n has joined #datamapper
knowtheory has quit [Quit: Computer has gone to sleep]
rolfb has joined #datamapper
Sylvain1 has joined #datamapper
dkubb has joined #datamapper
mbj_ has joined #datamapper
knowtheory has joined #datamapper
mbj has quit [Ping timeout: 260 seconds]
Sylvain1 has quit [Ping timeout: 240 seconds]
ckrailo has joined #datamapper
rolfb has quit [Quit: Leaving...]
mbj_ is now known as mbj
solnic has quit [Quit: Leaving...]
kenyabob has joined #datamapper
kenyabob has left #datamapper [#datamapper]
rolfb has joined #datamapper
Sylvain1 has joined #datamapper
rolfb has quit [Ping timeout: 240 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #datamapper
mikecmpbll has quit [Client Quit]
mbj has quit [Remote host closed the connection]
snusnu has quit [Quit: Leaving.]
mbj has joined #datamapper
mbj_ has joined #datamapper
mbj has quit [Ping timeout: 268 seconds]
snusnu has joined #datamapper
akasper has quit [Quit: Leaving.]
bobocopy has joined #datamapper
brianpWins has quit [Quit: brianpWins]
rolfb has joined #datamapper
rolfb has quit [Ping timeout: 246 seconds]
rsim has quit [Quit: Leaving.]
mbj_ has quit [Read error: Connection reset by peer]
rolfb has joined #datamapper
rsim has joined #datamapper
rolfb has quit [Ping timeout: 248 seconds]
<onewheelskyward> In datamapper 1.2, what's a good way determine the finder elements programmatically? For instance, I have an array of arrays ['fieldname', 'eq', 'matchthis'] and I'd like to pass them to all().
<dkubb> onewheelskyward: I don't know if there's anything built into DM for this. you probably want to validate all the field names match the properties in the model
<dkubb> onewheelskyward: you could also construct the raw Query object if you wanted
<onewheelskyward> Will definitely validate the properties
<onewheelskyward> I just found :conditions.
<dkubb> so I would translate the fieldname in the property object, and then construct a comparison object for each
<onewheelskyward> Oh that's interesting
<onewheelskyward> Thanks!
<dkubb> this might give you a clue how they are used: https://github.com/datamapper/dm-core/blob/master/lib/dm-core/query.rb#L78-L86
<dkubb> you should be able to pass in the resulting AndOperation object to :conditions, eg: User.all(conditions: and_operation)
<dkubb> you can construct arbitrarily deep and/or combinations
mbj has joined #datamapper
<onewheelskyward> Fantastic!
<onewheelskyward> Thanks again.
<dkubb> np
mbj has quit [Read error: Connection reset by peer]
rolfb has joined #datamapper
mbj has joined #datamapper
mouse-_ has quit [Ping timeout: 264 seconds]
onewheelskyward has quit [Ping timeout: 264 seconds]
onewheelskyward has joined #datamapper
knowtheo1y has joined #datamapper
knowtheo2y has joined #datamapper
knowtheo1y has quit [Read error: Connection reset by peer]
mouse-_ has joined #datamapper
knowtheory has quit [Ping timeout: 264 seconds]
knowtheory has joined #datamapper
knowtheory has quit [Read error: Connection reset by peer]
knowtheory has joined #datamapper
knowtheo2y has quit [Ping timeout: 248 seconds]
myobie has joined #datamapper
rsim has quit [Quit: Leaving.]
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 [Changing host]
zombor has joined #datamapper
zombor has quit [Remote host closed the connection]
rolfb has quit [Quit: Leaving...]
zombor has joined #datamapper
zombor has quit [Remote host closed the connection]
rolfb has joined #datamapper
zombor has joined #datamapper
zombor has joined #datamapper
rolfb has quit [Ping timeout: 246 seconds]
knowtheory has quit [Quit: Computer has gone to sleep]
rsim has joined #datamapper
zombor has quit [Remote host closed the connection]
rsim has quit [Ping timeout: 240 seconds]
mbj has quit [Quit: leaving]
Sylvain1 has quit [Quit: Leaving.]
Sylvain1 has joined #datamapper
knowtheory has joined #datamapper
v0n has quit [Ping timeout: 268 seconds]
postmodern has joined #datamapper
lnormous has joined #datamapper
<lnormous> If I want to repeat some property definitions in more than one module, is there a good way to do that
<lnormous> I tried subclassing, and tried doing a require 'some_defs', but neither worked
knowtheory has quit [Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/]
<Cinchy> [URL] Ruby Datamapper table inheritance with associations - Stack Overflow
<lnormous> except that doesn't seem to work
mkf has quit [Ping timeout: 256 seconds]
mkf has joined #datamapper
northrup has joined #datamapper
zombor has joined #datamapper
zombor has quit [Changing host]
zombor has joined #datamapper
ckrailo has quit [Quit: Computer has gone to sleep.]
bobocopy has quit [Quit: Leaving.]
bobocopy has joined #datamapper