Valentino Stoll
๐ค SpeakerAppearances Over Time
Podcast Appearances
to say, hey, any changes made to the database, you know, make sure they're attributed to whoever the current user is. So we implemented that and then allowed, you know, full auditing for whatever user was logged into the system, you know, with just a simple little Rails customization. Gotcha.
to say, hey, any changes made to the database, you know, make sure they're attributed to whoever the current user is. So we implemented that and then allowed, you know, full auditing for whatever user was logged into the system, you know, with just a simple little Rails customization. Gotcha.
Yeah, more for accountability than anything else. You say, hey, what were you doing during this change? Sometimes you just need to audit the specific scenario of a change so that you can go and make sure it didn't affect anything else as a side effect.
Yeah, more for accountability than anything else. You say, hey, what were you doing during this change? Sometimes you just need to audit the specific scenario of a change so that you can go and make sure it didn't affect anything else as a side effect.
Short answer, no. I mean, there's a kind of a discrepancy here. And it's two worlds colliding where somebody made a better IRB at one point. And now kind of the features of Pry are sneaking into the native Ruby IRB. Which is awesome. Yeah. So, I mean, they're very... They're completely different things at this point.
Short answer, no. I mean, there's a kind of a discrepancy here. And it's two worlds colliding where somebody made a better IRB at one point. And now kind of the features of Pry are sneaking into the native Ruby IRB. Which is awesome. Yeah. So, I mean, they're very... They're completely different things at this point.
Yes. Rails console is wrapped on IRB.
Yes. Rails console is wrapped on IRB.
Gotcha. Yeah. So as far as like what Rails is doing, it's probably just an elaborate IRB RC thing. Because anything you have in your IRB-C will be in the context of whatever ends up being the IRB session you're in. So when you do Rails C, I imagine it just loads the application and makes a few things available to the terminal, like the reload command or something like that.
Gotcha. Yeah. So as far as like what Rails is doing, it's probably just an elaborate IRB RC thing. Because anything you have in your IRB-C will be in the context of whatever ends up being the IRB session you're in. So when you do Rails C, I imagine it just loads the application and makes a few things available to the terminal, like the reload command or something like that.
Yeah, that makes sense.
Yeah, that makes sense.
That's kind of the value of the IRB-C2 is like you can define methods in there that do whatever you want. So, you know, Rails has the customizations with a bunch of methods that it'll inject into the session and, you know, give you that available. So I have some myself, which will give me me. as an example.
That's kind of the value of the IRB-C2 is like you can define methods in there that do whatever you want. So, you know, Rails has the customizations with a bunch of methods that it'll inject into the session and, you know, give you that available. So I have some myself, which will give me me. as an example.
So then I have a who am I, basically, that gives you access to your current user's name and a bunch of related ones to that.
So then I have a who am I, basically, that gives you access to your current user's name and a bunch of related ones to that.
I mean, what you could do is you can make your own input method that then remaps all of the characters. So as you're typing, it'll output a different character. Yeah, yeah.
I mean, what you could do is you can make your own input method that then remaps all of the characters. So as you're typing, it'll output a different character. Yeah, yeah.
Not technically the IRBRC. We have a custom initializer for Rails itself that will just make some modifications to the Rails console itself and then start up kind of call super on it.
Not technically the IRBRC. We have a custom initializer for Rails itself that will just make some modifications to the Rails console itself and then start up kind of call super on it.