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
rsim has quit [Quit: Leaving.]
cored has quit [Ping timeout: 276 seconds]
knowtheory has joined #datamapper
ckrailo has quit [Quit: Computer has gone to sleep.]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
campezzi has joined #datamapper
campezzi has quit [Client Quit]
jeremyevans has joined #datamapper
snusnu has quit [Quit: Leaving.]
\_pol has quit [Remote host closed the connection]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
zombor has quit [Remote host closed the connection]
zombor has joined #datamapper
zombor has quit [Ping timeout: 252 seconds]
dkubb has joined #datamapper
rolfb has joined #datamapper
rolfb has quit [Quit: Leaving...]
<dkubb> !memo mbj wdyt about rubocop? worth testing in devtools?
<Cinchy> dkubb: Memo recorded for mbj.
sylvain_ has joined #datamapper
<sylvain_> hello, I wanted to make sure there is no way to import an convert an existing MySQL schema to datamapper format?
zombor has joined #datamapper
zombor has joined #datamapper
zombor has quit [Changing host]
zombor has quit [Ping timeout: 240 seconds]
<dkubb> sylvain_: yeah, there's one project to generate DM models from an existing schema. lemme get you the link
<sylvain_> dkubb: thanks
<dkubb> sylvain_: https://github.com/yogo/dm-reflection/ .. I'd recommend checking the models by hand to make sure they look right, but it should be a good start: https://github.com/yogo/dm-reflection/
<dkubb> whoops
<sylvain_> dkubb: sweet, thanks a lot!
sylvain_ has quit [Ping timeout: 250 seconds]
zombor has joined #datamapper
zombor has quit [Ping timeout: 252 seconds]
rsim has joined #datamapper
banditron has quit [Remote host closed the connection]
mbj has joined #datamapper
<mbj> .
<Cinchy> mbj: [1h 36m 20s ago] <dkubb> wdyt about rubocop? worth testing in devtools?
<mbj> dkubb: Never tried, but it uses whitequark/parser so should be less problematic than the ruby_parser based tools.
<mbj> It is worth a try.
<dkubb> yeah
<dkubb> it seems a bit more strict than other tools we use
<dkubb> I need to try it out and seriously fix the code and see what I agree with
<dkubb> generally when testing a tool I try to use it as intended with the defaults in place and try to understand the motivation of the author before attempting to configure and tweak it to match my style
dkubb has quit [Quit: Linkinus - http://linkinus.com]
<mbj> !memo dkubb np, same here. But just starting the day :D
<Cinchy> mbj: Memo recorded for dkubb.
tillsc has joined #datamapper
mbj has quit [Ping timeout: 264 seconds]
tillsc has quit [Quit: Linkinus - http://linkinus.com]
tillsc has joined #datamapper
tillsc has quit [Client Quit]
solnic has joined #datamapper
mbj has joined #datamapper
postmodern has quit [Ping timeout: 252 seconds]
postmodern has joined #datamapper
postmodern has quit [Quit: Leaving]
brainopia has joined #datamapper
cored has joined #datamapper
cored has joined #datamapper
zombor has joined #datamapper
brainopia has quit [Quit: brainopia]
gix has quit [Ping timeout: 256 seconds]
gix has joined #datamapper
snusnu has joined #datamapper
zombor has quit [Remote host closed the connection]
v0n has joined #datamapper
zombor has joined #datamapper
zombor has joined #datamapper
mbj has quit [Remote host closed the connection]
snusnu has quit [Quit: Leaving.]
snusnu has joined #datamapper
banditron has joined #datamapper
v1n has joined #datamapper
v0n has quit [Read error: Operation timed out]
solnic has quit [Quit: Leaving...]
solnic has joined #datamapper
knowtheo1y has joined #datamapper
knowtheory has quit [Ping timeout: 256 seconds]
v1n has quit [Read error: Operation timed out]
mtrisoline has joined #datamapper
knowtheo1y has quit [Quit: Computer has gone to sleep]
mbj has joined #datamapper
v0n has joined #datamapper
bobocopy has joined #datamapper
snusnu has quit [Read error: Connection reset by peer]
snusnu has joined #datamapper
knowtheory has joined #datamapper
ckrailo has joined #datamapper
bobocopy has quit [Quit: Leaving.]
Ortuna has quit [Ping timeout: 256 seconds]
Ortuna has joined #datamapper
Ortuna has quit [Ping timeout: 256 seconds]
Ortuna has joined #datamapper
\_pol has joined #datamapper
mikecmpbll has joined #datamapper
rsim has quit [Quit: Leaving.]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
xeviox has joined #datamapper
<xeviox> is there a bug in datamapper with many-to-many associations?
<xeviox> At first I used ":through => Resource" which worked fine
<xeviox> now I want to use another class as I want to store additional values. So I created my association class "UserGroup" and changed the association line to ":through => :user_groups"
<xeviox> when I now try to run my code I always get an error that "No relationships named users or user in GroupsUser"
<xeviox> o_O I don't know where the switched name comes from..
rsim has joined #datamapper
<xeviox> do I have to use the generated name???
<snusnu> xeviox: you need to eplicitly define the has n, :user_groups *before* you go through it
Ortuna has quit [Ping timeout: 252 seconds]
<xeviox> snusnu: what do you mean by "before you go through it" ?
<snusnu> xeviox: you need to define the one_to_many relationship before you can define the many_to_many one (that goes through the one_to_many one)
<xeviox> ah damn, I think I got it, completely missed the line in the online examples ..
<snusnu> xeviox: so if you had Person.has n, :tasks, :through => Resource .. you then need Person.has n, :person_tasks *plus* Person.has n, :tasks, :through => :person_tasks
Ortuna has joined #datamapper
<xeviox> snusnu: seems to work.. BIG THANKS! Seems I have missed that line everytime I checked the docs :(
<snusnu> xeviox: heh no worries, glad it works now
\_pol has quit [Remote host closed the connection]
mbj has quit [Quit: leaving]
Ortuna has quit [Ping timeout: 264 seconds]
dward has joined #datamapper
Ortuna has joined #datamapper
<dward> how do i specify which schema a table is using datamapper 1 with postgres
xeviox has left #datamapper ["Leaving"]
\_pol has joined #datamapper
bobocopy has joined #datamapper
<onewheelskyward> Which schema or which connection?
\_pol has quit [Remote host closed the connection]
<dward> I'm connected to an existing database, with multiple channels divided into schema. I tried setting the exact table name with this in the model, storage_names[:default] = 'channel_image.image', but it returned the error 'relation does not exist'
solnic has quit [Quit: Leaving...]
<onewheelskyward> Interesting. I've done cross database work but not cross schema work.
<onewheelskyward> What if you connect to the schema using a separate connection?
<dward> good idea, I will give it a try
cored has quit [Ping timeout: 252 seconds]
cored has joined #datamapper
cored has joined #datamapper
<dward> onewheelskyward: I have decidely to change the search_path between schemas as neccesary by issuing manual commands to the db. seems to work well.
<onewheelskyward> How long does that command take?
<dward> 12ms
<dward> SET search_path TO $user,<some_schema>,public;
<dward> I may use multiple connections later on for a little async work if neccessary
<dward> thanks for the tip though, if it's not working in ruby, do it how it's always been done
solnic has joined #datamapper
mbj has joined #datamapper
solnic has quit [Read error: Connection reset by peer]
snusnu has quit [Ping timeout: 256 seconds]
snusnu has joined #datamapper
Ortuna has quit [Quit: Computer has gone to sleep.]
solnic has joined #datamapper
<onewheelskyward> aaah gotchya
<onewheelskyward> I thought you were context switching for every model call. :)
knowtheo1y has joined #datamapper
dward has quit [Ping timeout: 248 seconds]
knowtheory has quit [Ping timeout: 276 seconds]
dward has joined #datamapper
solnic has quit [Quit: Leaving...]
snusnu has quit [Quit: Leaving.]
snusnu has joined #datamapper
bobocopy has quit [Quit: Leaving.]
\_pol has joined #datamapper
knowtheo1y has quit [Quit: Get MacIrssi - http://www.sysctl.co.uk/projects/macirssi/]
zombor has quit [Remote host closed the connection]
\_pol has quit [Remote host closed the connection]
rsim has quit [Quit: Leaving.]
\_pol has joined #datamapper
dkubb has joined #datamapper
<dkubb> memos
<Cinchy> dkubb: [14h 14m 44s ago] <mbj> np, same here. But just starting the day :D
mtrisoline has quit [Ping timeout: 240 seconds]
mtrisoline has joined #datamapper
rsim has joined #datamapper
v0n has quit [Ping timeout: 276 seconds]
dward has quit [Quit: leaving]
Ortuna has joined #datamapper
Ortuna has quit [Client Quit]
Ortuna has joined #datamapper
postmodern has joined #datamapper
v0n has joined #datamapper
mtrisoline has quit [Ping timeout: 252 seconds]
mtrisoline has joined #datamapper
dkubb has quit [Read error: Connection reset by peer]
v0n has quit [Ping timeout: 248 seconds]
dkubb has joined #datamapper
\_pol has quit [Remote host closed the connection]
rsim has quit [Quit: Leaving.]
mtrisoline has quit [Quit: mtrisoline]
dkubb|away has joined #datamapper
dkubb has quit [Ping timeout: 248 seconds]
dkubb|away is now known as dkubb
\_pol has joined #datamapper
rsim has joined #datamapper
\_pol has quit [Remote host closed the connection]
travis-ci has joined #datamapper
<travis-ci> [travis-ci] mbj/adamantium#44 (original-source-location - b11a1d2 : Markus Schirp): The build passed.
<travis-ci> [travis-ci] Change view : https://github.com/mbj/adamantium/commit/b11a1d24ab63
<travis-ci> [travis-ci] Build details : http://travis-ci.org/mbj/adamantium/builds/8677206
travis-ci has left #datamapper [#datamapper]
rsim has quit [Ping timeout: 240 seconds]
<rtyler> looks like the DM2 status page is broken
<mbj> rtyler: it is, mom
travis-ci has joined #datamapper
<travis-ci> [travis-ci] mbj/adamantium#45 (store-original-method - 66d6ef0 : Markus Schirp): The build has errored.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/mbj/adamantium/builds/8677943
<travis-ci> [travis-ci] Change view : https://github.com/mbj/adamantium/commit/66d6ef0b48ce
travis-ci has left #datamapper [#datamapper]
travis-ci has joined #datamapper
<travis-ci> [travis-ci] Build details : http://travis-ci.org/mbj/adamantium/builds/8677987
<travis-ci> [travis-ci] mbj/adamantium#46 (store-original-method - c15057b : Markus Schirp): The build failed.
travis-ci has left #datamapper [#datamapper]
travis-ci has joined #datamapper
<travis-ci> [travis-ci] mbj/adamantium#47 (store-original-method - d1ae5f4 : Markus Schirp): The build is still failing.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/mbj/adamantium/builds/8678441
travis-ci has left #datamapper [#datamapper]
travis-ci has joined #datamapper
<travis-ci> [travis-ci] mbj/adamantium#47 (store-original-method - d1ae5f4 : Markus Schirp): The build is still failing.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/mbj/adamantium/builds/8678441
travis-ci has left #datamapper [#datamapper]
travis-ci has joined #datamapper
<travis-ci> [travis-ci] mbj/adamantium#48 (store-original-method - d1c3a55 : Markus Schirp): The build is still failing.
<travis-ci> [travis-ci] Build details : http://travis-ci.org/mbj/adamantium/builds/8678572
travis-ci has left #datamapper [#datamapper]