nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nirvdrum has joined #ruby
rick123 has joined #ruby
rick123 has left #ruby [#ruby]
nirvdrum has quit [Client Quit]
eddof13 has joined #ruby
idiocrash has joined #ruby
q3lont has quit [Ping timeout: 260 seconds]
AndreYuhai has joined #ruby
<AndreYuhai>
Hi everyone! Does anyone have any idea about what this error might mean? -> "<ActiveRecord::RecordInvalid: Validation failed: Name is reserved>"
<AndreYuhai>
It happens when we try to update an entity but I don't know what to look for.
dionysus69 has joined #ruby
teclator has joined #ruby
idiocrash has quit [Ping timeout: 246 seconds]
<jhass[m]>
Sounds custom to me, check the validate calls on the model
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
idiocrash has joined #ruby
eddof13 has joined #ruby
Rounin has joined #ruby
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<AndreYuhai>
jhass[m]: The error would be there somehow, right? Since it's custom. Because I was trying to search the error. Let me search repo wide. :D
___nick___ has joined #ruby
<jhass[m]>
could be looped through translations
<jhass[m]>
and "Name" be interpolated, so your needle would be "is reserved"
Jonopoly has joined #ruby
<AndreYuhai>
jhass[m]: That's genius! haha. Thank you so much. I was able to find some error which is not really Ruby related (Elixir), but I guess this will help debug further.
q3lont has joined #ruby
<AndreYuhai>
Well, I guess I was wrong. :D I mean it can't really be Elixir related because the error comes from ActiveRecord validation, but in the code only place I can see that error is in Elixir. Weird.
donofrio has joined #ruby
donofrio has quit [Remote host closed the connection]
infinityfye has joined #ruby
idiocrash has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndreYuh3i has joined #ruby
leah2 has quit [Ping timeout: 272 seconds]
Exa has quit [Quit: see ya!]
Exa has joined #ruby
ysionneau has quit [Ping timeout: 245 seconds]
AndreYuhai has quit [Ping timeout: 272 seconds]
georgemp_ has joined #ruby
ssh073 has quit [Ping timeout: 240 seconds]
moo- has joined #ruby
moo has quit [Read error: Connection reset by peer]
gigamo has quit [Ping timeout: 240 seconds]
quintasan has quit [Quit: No Ping reply in 180 seconds.]
<jhass[m]>
don't see it referenced in official 2.7 docs yet though, not sure where that link went at the time. That might due to it being experimental in 2.7
<jhass[m]>
mooff: ^ so that might actually be the answer, only try stuff that's mentioned there
<mooff>
thanks jhass[m]
<jhass[m]>
and prepare for some warning spam on 2.7
<mooff>
i feel like i should target 2.7 while it ships in Debian stable
<mooff>
even though there are lots of 3.0 and 3.1 features i'd like to use
<jhass[m]>
yeah. Also tooling might not be up-to-speed, ruby_parser added the latest 3.1 features only this week for example
<mooff>
particularly endless methods :)
Tempesta has quit [Quit: See ya!]
<mooff>
and the shorthand hash syntax {a:, b:}
<ox1eef>
ive started to pin to 3.1 at least for a few gems. debian is always way behind the time.
Jonopoly has quit [Quit: WeeChat 3.0]
some14u has joined #ruby
Tempesta has joined #ruby
bit4bit has joined #ruby
some14u has quit [Ping timeout: 248 seconds]
<ox1eef>
played around with pattern matching, and looks like it still needs work. basically, ("foo" in Foo.new) will always return true, and not call any callbacks. ("foo" in Foo.new.to_a) is a syntax error, but would call deconstruct on Foo
<ox1eef>
just gotta work with it i guess.
<ox1eef>
works better using case.. in
<ox1eef>
not a fan, as new features good id call that implementation a bad omen.
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
oxfuxxx has joined #ruby
eddof13 has joined #ruby
John_Ivan has joined #ruby
<mooff>
ox1eef: my worry is it's super non-obvious what the various forms are doing
<mooff>
without studying the documentation for some time
AndreYuh3i has quit [Quit: Lost terminal]
jpn has quit [Ping timeout: 250 seconds]
jpn has joined #ruby
hololeap_ has quit [Ping timeout: 240 seconds]
hololeap_ has joined #ruby
bit4bit has quit [Ping timeout: 248 seconds]
cahoots has joined #ruby
_ht has joined #ruby
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<moo>
one day i'll create an AI that can automatically upgrade between arbitrary rails versions and become stinking rich
hololeap_ has quit [Ping timeout: 240 seconds]
hololeap_ has joined #ruby
cxl has quit [Changing host]
cxl has joined #ruby
Thanzex has quit [Read error: Connection reset by peer]
Thanzex has joined #ruby
yxhuvud has quit [Ping timeout: 256 seconds]
eddof13 has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jpn has quit [Ping timeout: 246 seconds]
oxfuxxx has quit [Read error: Connection reset by peer]
oxfuxxx has joined #ruby
hololeap has joined #ruby
jpn has joined #ruby
hololeap_ has quit [Ping timeout: 240 seconds]
jpn has quit [Ping timeout: 248 seconds]
oxfuxxx has quit [Ping timeout: 260 seconds]
jpn has joined #ruby
oxfuxxx has joined #ruby
hololeap_ has joined #ruby
hololeap has quit [Ping timeout: 240 seconds]
yxhuvud has joined #ruby
hololeap_ has quit [Ping timeout: 240 seconds]
hololeap_ has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
seifeslimene has quit [Ping timeout: 260 seconds]
seifeslimene has joined #ruby
gr33n7007h has quit [Ping timeout: 252 seconds]
gr33n7007h has joined #ruby
some14u has joined #ruby
some14u has quit [Client Quit]
_ht has quit [Remote host closed the connection]
___nick___ has quit [Ping timeout: 248 seconds]
jpn has quit [Ping timeout: 272 seconds]
oxfuxxx has quit [Ping timeout: 240 seconds]
robotmay has quit [Quit: Be excellent to each other]
nirvdrum has joined #ruby
nirvdrum has quit [Client Quit]
nirvdrum has joined #ruby
robotmay has joined #ruby
dionysus69 has joined #ruby
some14u has joined #ruby
some14u has quit [Client Quit]
bit4bit has joined #ruby
jpn has joined #ruby
szkl has joined #ruby
donofrio has quit [Ping timeout: 260 seconds]
jpn has quit [Quit: leaving]
donofrio has joined #ruby
dionysus69 has quit [Ping timeout: 268 seconds]
gr33n7007h has quit [Ping timeout: 252 seconds]
ur5us_ has joined #ruby
ssh073 has joined #ruby
nirvdrum has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ollysmith has quit [Quit: ZNC 1.8.2+deb2+b3 - https://znc.in]
ollysmith has joined #ruby
hololeap_ has quit [Ping timeout: 240 seconds]
hololeap_ has joined #ruby
o|||||o has quit [Ping timeout: 252 seconds]
o|||||o has joined #ruby
Guest26nakilon has joined #ruby
Guest26nakilon has quit [Client Quit]
infinityfye has quit [Quit: Leaving]
<ox1eef>
mooff: the whole thing feels so unruby like to me... ("foo" in x) only seems to work for primitives like Array and Hash, you would think it might just call to_h or to_a on the receiver, but no, and you can't even do it explicitly (it is a syntax error)
<ox1eef>
its really disappointing, could have been something awesome. idk, im probably too harsh.
<ox1eef>
btw, (obj in "foo") works in the sense that it calls deconstruct / deconstruct_keys on "obj", but it makes no sense in that order.