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
Ortuna has quit [Quit: IRC Leave]
kurko_ has quit [Quit: Computer has gone to sleep.]
aschepis has joined #datamapper
<aschepis>
hey all.. how can i tell why a record is getting loaded as immutable.. doing a really simple find by id and its throwing an immutable error when i try to update any field.
<aschepis>
loc = Location.first(id: params["location_id"])
aschepis has quit [Quit: aschepis]
rsim has joined #datamapper
rsim has quit [Ping timeout: 240 seconds]
snusnu has quit [Quit: Leaving.]
zombor has quit [Remote host closed the connection]
v0n has quit [Ping timeout: 240 seconds]
dkubb has joined #datamapper
<dkubb>
memos
<Cinchy>
dkubb: [21h 0m 9s ago] <solnic> fair enough :) I just don't consider this a big issue given early stage of ROM's code. As I said, this will become more important when we reach a higher version number (at least IMHO).
<dkubb>
solnic: actually, I think disabling yardstick altogether when stuff is pre-alpha is fine. I suggested it a few days ago actually. what I'm more concerned about is if yardstick is giving you incorrect results, or if there are bugs that are making you less effective at writing YARD docs when you actually set out to document something
<dkubb>
solnic: one simple change I was going to make is to report the documentation that is not currently covered along with the percentage coverage, the same way rubocop reports stuff
campezzi has joined #datamapper
<campezzi>
hey folks. trying to use a ParanoidDateTime property on a model here... how would I go about setting FactoryGirl to understand that? setting it to a regular DateTime object doesn't seem to pass validation
<campezzi>
ie. my factory has this (which doesn't work): deleted_at Chronic.parse("yesterday")
<campezzi>
if I make the column a simple DateTime, it does work as intended but that leaves me to implement paranoia :P
<solnic>
!memo dkubb the biggest bug in yardstick is that its configuration isn’t really working :) if I could, let’s say, turn off checks for private methods it could save a lot of my time. I also think having @example’s w/o any kind of verification if they are valid is pretty much useless (as snusnu already described in the commit comment). Maybe we could put
<solnic>
examples in actual executable specs and embed them later with some yard extension. We could also just use relishapp but I don’t really like its output to be honest.
<Cinchy>
solnic: Memo recorded for dkubb.
snusnu has quit [Quit: Leaving.]
zombor has joined #datamapper
_whitelogger has joined #datamapper
DireFog_ is now known as DireFog
kurko_ has joined #datamapper
v0n has joined #datamapper
knowtheory has joined #datamapper
snusnu has joined #datamapper
bobocopy has joined #datamapper
bobocopy has quit [Client Quit]
bobocopy has joined #datamapper
bobocopy has quit [Read error: Connection reset by peer]
bobocopy has joined #datamapper
bobocopy has quit [Quit: Leaving.]
bobocopy has joined #datamapper
mbj has joined #datamapper
knowtheory has quit [Quit: Computer has gone to sleep]
dkubb has joined #datamapper
<dkubb>
memos
<Cinchy>
dkubb: [3h 47m 35s ago] <solnic> the biggest bug in yardstick is that its configuration isn’t really working :) if I could, let’s say, turn off checks for private methods it could save a lot of my time. I also think having @example’s w/o any kind of verification if they are valid is pretty much useless (as snusnu already described in the commit comment). Maybe we could put
g0bl1n has joined #datamapper
Sylvain1 has joined #datamapper
careo has joined #datamapper
lnormous has joined #datamapper
mbj has quit [Quit: leaving]
myobie has joined #datamapper
kyle_l5l has quit [Remote host closed the connection]
<Cinchy>
[gist] How would I build a better relationship? Whenever I create a license for a person, I have to pass in a vehicle relation too. (at gist.github.com, theCrab on 2013-08-05 20:18)
<theCrab>
dkubb: ^^ any wise words?
<dkubb>
theCrab: OT, but can you not have a drivers relationship?
<theCrab>
dkubb: if I do belongs_to :vehicle, required: false. There's no effect and I think it would
<theCrab>
dkubb: I did have a Drivers relation, But then it meant I had to have a Passenger, Owners, Employees etc. All are Person.
<theCrab>
dkubb: Maybe I should do it that way. But all those are Roles no?
<theCrab>
snusnu: Any awesomeness sir?
<dkubb>
it's interesting a license belongs to a vehicle
<dkubb>
it's not that way in Canada or the US afaik
<dkubb>
we have separate insurance registration for the vehicles. it's decoupled from our license
<theCrab>
dkubb: In the UK a vehicle has to have at least 2 certificates/licenses. MOT and ROAD TAX, the driver is always insured on a named vehicle.
<theCrab>
dkubb: i just called all of them licenses, since they all behave like one.
<dkubb>
theCrab: btw, you could use dm-timestamps's "timestamp :at" line in the model
<dkubb>
theCrab: sometimes what I do is create a base resource that I mix into my models