4 posts tagged with "ruby"
Catching exceptions and signal handling
Posted on April, 2022Spring Shell uses a CommandLineRunner blocking the main thread in order to run the interactive communication with the user. Other CommandLineRunners without any defined @Order or a lower priority, will not be executed before...
Read full postHow to eager load files with Rails
Posted on March, 2022Eager loading increases performance and thus is useful in production environments. But this conditional behaviour can also lead to works-on-my-machine moments.
Read full postAbout generated methods for has_many relations
Posted on March, 2022Besides making the collection of objects available through 16 more methods get added to the model automatically.
Read full postRuby class members are methods!
Posted on March, 2022Members of a class are retrieved via sending message to the instance object. This means, accessing a property is the same as invoking a method with the same name. This can be used as a useful…
Read full post