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
v0n has joined #datamapper
v0n has quit [Ping timeout: 245 seconds]
stormwind has quit [Read error: Connection reset by peer]
stormwind has joined #datamapper
skade has joined #datamapper
skade has quit [Quit: Computer has gone to sleep.]
dkubb has joined #datamapper
Frost has quit [Quit: WeeChat 0.4.2-dev]
kleech has joined #datamapper
lgierth has joined #datamapper
dweeb_ has joined #datamapper
skade has joined #datamapper
dkubb has quit [Quit: Linkinus - http://linkinus.com]
mikecmpbll has joined #datamapper
dweeb_ has quit [Quit: Computer has gone to sleep.]
dweeb_ has joined #datamapper
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #datamapper
mkf has quit [Ping timeout: 252 seconds]
mkf has joined #datamapper
develop7 has joined #datamapper
mkristian has joined #datamapper
kleech has quit [Read error: Connection reset by peer]
kleech has joined #datamapper
dweeb_ has quit [Quit: Computer has gone to sleep.]
mkristian has quit [Ping timeout: 245 seconds]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mkristian has joined #datamapper
mbj has joined #datamapper
v0n has joined #datamapper
<develop7> I want to extract some DM properties' definitions into reusable module. Naive approach like https://gist.github.com/develop7/ce3c80de90ebbb727f78 fails.
<Cinchy> [gist] DM trait fail (at gist.github.com, develop7 on 2014-01-24 14:23)
mikecmpbll has joined #datamapper
<develop7> Obviously I do not want to define key property in model.rb, as it is not separate model.
<develop7> s/model.rb/stuff.rb/
<develop7> So, is there a way to define property outside of model class with DM or there isn't?
g0bl1n has joined #datamapper
postmodern has quit [Quit: Leaving]
mkristian has quit [Quit: bye]
dkubb has joined #datamapper
kleech has quit [Remote host closed the connection]
<lgierth> dkubb: other people have multi-repo issues as well :) http://espy.github.io/ubersicht
<Cinchy> [URL] Ubersicht
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
mikecmpbll has joined #datamapper
<lgierth> in this case it's just issues with managing github issues over multiple repos though
<dkubb> we have that issue
<dkubb> as long as we keep things decoupled that's the main thing I care about
<dkubb> I'd hate to gravitate towards a monolithic design where every component depends on every other component
<dkubb> like with rails where theoretically you can strip some pieces out, but in practice no one does so you run into weird dependency bugs when you try
<lgierth> i'm totally +1 with everything said in the comments
<dkubb> lgierth: btw, we're in #datamapper now, not #rom-rb ;)
<lgierth> ouh!
<lgierth> having #datamapper marked as having new lines must have confused me!
<lgierth> develop7: you can define properties from whereever you want, but make sure to do it only before calling DataMapper.finalize (not during actual runtime, that is)
skade has quit [Quit: Computer has gone to sleep.]
mikecmpbll has quit [Quit: ["Textual IRC Client: www.textualapp.com"]]
kleech has joined #datamapper
kleech has quit [Remote host closed the connection]
lfox has joined #datamapper
skade has joined #datamapper
<develop7> lgierth: I do and Datamapper considers Stuff module a separate model, while I want to be able to mix Stuff into multiple DM resources classes.
<lgierth> develop7: oh i see what you mean, i hadn't looked at your code
<lgierth> let me fork that
<Cinchy> [gist] fail.txt (at gist.github.com, lgierth on 2014-01-24 17:56)
<lgierth> something like that should work
<develop7> lgierth: oh, thanks. let me try that
mbj has quit [Quit: leaving]
<develop7> lgierth: looks like it worked, just had to specify fully qualified name for property type — https://gist.github.com/develop7/5edfa173d4baa2170fc8
<Cinchy> [gist] fail.txt (at gist.github.com, develop7 on 2014-01-24 18:03)
<lgierth> develop7: oh right, that's because `include DataMapper::Resource` pulls in the types namespace
<lgierth> make sure to also prepend it to String properties
<lgierth> otherwise it'll pick up ruby's String
<lgierth> same for other types
skade has quit [Quit: Computer has gone to sleep.]
g0bl1n has quit [Quit: Ex-Chat]
lfox has quit [Quit: ZZZzzz…]
skade has joined #datamapper
skade has quit [Quit: Computer has gone to sleep.]
skade has joined #datamapper
kleech has joined #datamapper
kleech has quit [Ping timeout: 248 seconds]
skade has quit [Quit: Computer has gone to sleep.]
develop7 has quit [Ping timeout: 272 seconds]
lgierth has quit [Ping timeout: 272 seconds]
skade has joined #datamapper
develop7 has joined #datamapper
skade has quit [Ping timeout: 248 seconds]
skade has joined #datamapper
jordanyee has quit [Remote host closed the connection]
develop7 has quit [Ping timeout: 264 seconds]
v0n has quit [Ping timeout: 252 seconds]
v0n has joined #datamapper
postmodern has joined #datamapper
v0n has quit [Ping timeout: 272 seconds]
skade has quit [Quit: Computer has gone to sleep.]
kleech has joined #datamapper
kleech has quit [Remote host closed the connection]
lfox has joined #datamapper