00:13
lnormous has quit [Read error: Connection reset by peer]
00:15
ckrailo has joined #datamapper
00:24
ckrailo has quit [Quit: Computer has gone to sleep.]
00:24
ckrailo has joined #datamapper
00:35
Sylvain1 has quit [Ping timeout: 260 seconds]
00:52
banditron has quit [Remote host closed the connection]
01:02
rsim has joined #datamapper
01:06
rsim has quit [Ping timeout: 240 seconds]
01:15
Sylvain1 has joined #datamapper
02:06
v1n has quit [Ping timeout: 276 seconds]
02:28
ckrailo has quit [Quit: Computer has gone to sleep.]
02:32
v1n has joined #datamapper
03:15
zombor has quit [Remote host closed the connection]
03:48
snusnu has quit [Quit: Leaving.]
03:59
zombor has joined #datamapper
03:59
zombor has quit [Changing host]
03:59
zombor has joined #datamapper
04:04
zombor has quit [Ping timeout: 240 seconds]
04:58
brianpWins has joined #datamapper
05:00
zombor has joined #datamapper
05:04
zombor has quit [Ping timeout: 256 seconds]
05:42
v1n has quit [Ping timeout: 240 seconds]
06:01
Sylvain1 has quit [Read error: Connection reset by peer]
06:23
Sylvain1 has joined #datamapper
06:26
Sylvain1 has quit [Client Quit]
06:34
rsim has joined #datamapper
06:38
rsim has quit [Ping timeout: 240 seconds]
06:57
Sylvain1 has joined #datamapper
07:04
Sylvain1 has quit [Ping timeout: 256 seconds]
07:09
noca has joined #datamapper
07:12
elskwid_ has joined #datamapper
07:14
jpr5 has quit [*.net *.split]
07:14
elskwid has quit [*.net *.split]
07:14
elskwid_ is now known as elskwid
07:19
rsim has joined #datamapper
07:27
elskwid has joined #datamapper
07:27
elskwid has quit [Changing host]
07:32
Sylvain1 has joined #datamapper
07:36
mbj has joined #datamapper
07:38
tyranja has left #datamapper ["WeeChat 0.3.9.2"]
08:09
mbj has quit [Quit: leaving]
08:14
rolfb has joined #datamapper
08:16
solnic has joined #datamapper
08:38
solnic has quit [Quit: Leaving...]
08:54
Sylvain1 has quit [Ping timeout: 264 seconds]
09:08
theCrab has joined #datamapper
09:19
Sylvain1 has joined #datamapper
09:40
solnic has joined #datamapper
09:51
Sylvain3 has joined #datamapper
09:51
Sylvain1 has quit [Read error: Connection reset by peer]
10:01
ngw has joined #datamapper
10:13
postmodern has quit [Quit: Leaving]
10:30
rolfb has quit [Quit: Leaving...]
10:37
Sylvain3 has quit [Ping timeout: 248 seconds]
10:42
solnic has quit [Quit: Leaving...]
10:46
snusnu has joined #datamapper
10:46
solnic has joined #datamapper
11:02
Sylvain1 has joined #datamapper
11:33
snusnu has quit [Quit: Leaving.]
11:49
snusnu has joined #datamapper
12:02
ngw has quit [Quit: Bye!]
12:08
theCrab has quit [Quit: Sleeping -_-]
12:12
mikecmpbll has joined #datamapper
12:34
Sylvain1 has quit [Ping timeout: 248 seconds]
12:51
mbj has joined #datamapper
12:53
mbj_ has joined #datamapper
12:54
mbj_ has quit [Client Quit]
12:56
Sylvain1 has joined #datamapper
13:14
solnic has quit [Quit: Leaving...]
13:18
mbj has quit [Read error: Connection reset by peer]
13:25
solnic has joined #datamapper
13:33
mbj has joined #datamapper
13:35
v1n has joined #datamapper
13:45
zombor has joined #datamapper
13:45
zombor has quit [Changing host]
13:45
zombor has joined #datamapper
13:52
v1n has quit [Read error: Operation timed out]
13:53
mbj has quit [Ping timeout: 276 seconds]
13:57
bobocopy has joined #datamapper
13:58
mbj has joined #datamapper
14:01
solnic has quit [Quit: Leaving...]
14:22
solnic has joined #datamapper
14:25
bobocopy has quit [Quit: Leaving.]
14:25
bobocopy has joined #datamapper
14:30
mikecmpbll has joined #datamapper
14:32
bobocopy is now known as akasper
14:41
Sylvain1 has quit [Ping timeout: 248 seconds]
14:42
v0n has joined #datamapper
14:48
knowtheory has quit [Quit: Computer has gone to sleep]
14:55
rolfb has joined #datamapper
15:04
Sylvain1 has joined #datamapper
15:07
dkubb has joined #datamapper
15:20
mbj_ has joined #datamapper
15:24
knowtheory has joined #datamapper
15:24
mbj has quit [Ping timeout: 260 seconds]
15:27
Sylvain1 has quit [Ping timeout: 240 seconds]
15:35
ckrailo has joined #datamapper
15:50
rolfb has quit [Quit: Leaving...]
15:57
mbj_ is now known as mbj
16:00
solnic has quit [Quit: Leaving...]
16:06
kenyabob has joined #datamapper
16:06
kenyabob has left #datamapper [#datamapper]
16:20
rolfb has joined #datamapper
16:27
Sylvain1 has joined #datamapper
16:29
rolfb has quit [Ping timeout: 240 seconds]
16:31
mikecmpbll has joined #datamapper
16:32
mikecmpbll has quit [Client Quit]
16:38
mbj has quit [Remote host closed the connection]
16:43
snusnu has quit [Quit: Leaving.]
16:46
mbj has joined #datamapper
16:59
mbj_ has joined #datamapper
17:01
mbj has quit [Ping timeout: 268 seconds]
17:03
snusnu has joined #datamapper
17:16
akasper has quit [Quit: Leaving.]
17:17
bobocopy has joined #datamapper
17:20
brianpWins has quit [Quit: brianpWins]
17:25
rolfb has joined #datamapper
17:30
rolfb has quit [Ping timeout: 246 seconds]
17:54
rsim has quit [Quit: Leaving.]
18:20
mbj_ has quit [Read error: Connection reset by peer]
18:26
rolfb has joined #datamapper
18:28
rsim has joined #datamapper
18:30
rolfb has quit [Ping timeout: 248 seconds]
18:34
<
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().
18:46
<
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
18:47
<
dkubb >
onewheelskyward: you could also construct the raw Query object if you wanted
18:47
<
onewheelskyward >
Will definitely validate the properties
18:47
<
onewheelskyward >
I just found :conditions.
18:49
<
dkubb >
so I would translate the fieldname in the property object, and then construct a comparison object for each
18:49
<
onewheelskyward >
Oh that's interesting
18:49
<
onewheelskyward >
Thanks!
18:51
<
dkubb >
you should be able to pass in the resulting AndOperation object to :conditions, eg: User.all(conditions: and_operation)
18:52
<
dkubb >
you can construct arbitrarily deep and/or combinations
18:52
mbj has joined #datamapper
18:55
<
onewheelskyward >
Fantastic!
18:55
<
onewheelskyward >
Thanks again.
19:13
mbj has quit [Read error: Connection reset by peer]
19:13
rolfb has joined #datamapper
19:20
mbj has joined #datamapper
19:42
mouse-_ has quit [Ping timeout: 264 seconds]
19:43
onewheelskyward has quit [Ping timeout: 264 seconds]
19:46
onewheelskyward has joined #datamapper
19:47
knowtheo1y has joined #datamapper
19:50
knowtheo2y has joined #datamapper
19:50
knowtheo1y has quit [Read error: Connection reset by peer]
19:50
mouse-_ has joined #datamapper
19:51
knowtheory has quit [Ping timeout: 264 seconds]
20:03
knowtheory has joined #datamapper
20:03
knowtheory has quit [Read error: Connection reset by peer]
20:03
knowtheory has joined #datamapper
20:05
knowtheo2y has quit [Ping timeout: 248 seconds]
20:12
myobie has joined #datamapper
20:19
rsim has quit [Quit: Leaving.]
20:21
zombor has quit [Remote host closed the connection]
20:26
zombor has joined #datamapper
20:27
zombor has quit [Remote host closed the connection]
20:31
zombor has joined #datamapper
20:31
zombor has quit [Changing host]
20:31
zombor has joined #datamapper
20:31
zombor has quit [Remote host closed the connection]
20:33
rolfb has quit [Quit: Leaving...]
20:36
zombor has joined #datamapper
21:02
zombor has quit [Remote host closed the connection]
21:03
rolfb has joined #datamapper
21:07
zombor has joined #datamapper
21:07
zombor has joined #datamapper
21:13
rolfb has quit [Ping timeout: 246 seconds]
21:17
knowtheory has quit [Quit: Computer has gone to sleep]
21:19
rsim has joined #datamapper
21:21
zombor has quit [Remote host closed the connection]
21:24
rsim has quit [Ping timeout: 240 seconds]
21:25
mbj has quit [Quit: leaving]
21:27
Sylvain1 has quit [Quit: Leaving.]
21:28
Sylvain1 has joined #datamapper
21:44
knowtheory has joined #datamapper
21:45
v0n has quit [Ping timeout: 268 seconds]
21:49
postmodern has joined #datamapper
22:06
lnormous has joined #datamapper
22:19
<
lnormous >
If I want to repeat some property definitions in more than one module, is there a good way to do that
22:19
<
lnormous >
I tried subclassing, and tried doing a require 'some_defs', but neither worked
22:42
<
Cinchy >
[URL] Ruby Datamapper table inheritance with associations - Stack Overflow
22:42
<
lnormous >
except that doesn't seem to work
23:09
mkf has quit [Ping timeout: 256 seconds]
23:16
mkf has joined #datamapper
23:39
northrup has joined #datamapper
23:46
zombor has joined #datamapper
23:46
zombor has quit [Changing host]
23:46
zombor has joined #datamapper
23:52
ckrailo has quit [Quit: Computer has gone to sleep.]
23:57
bobocopy has quit [Quit: Leaving.]
23:57
bobocopy has joined #datamapper