Dmytro Vasin·Oct 29, 2020Yet another reason to stop using attr_reader in the codeRecently, walking through my project’s code, I found a line that I want to refactor.
Dmytro Vasin·Feb 27, 2019How to add a custom cop to RubocopЗадача: In the project, as part of refactoring, we need to change and reduce values to one type in attributes (in tests).A response icon1A response icon1
Dmytro Vasin·Oct 30, 2017Speed up your tests via :build_stubbedRspec is very awesome thing that was created for ruby community. Most of us writing tests. But some times in large project our test become…
Dmytro Vasin·Oct 25, 2017Decrease complexity of routes in RailsSometimes, when you working with large codebase your `routes.rb` files grows really fast and become very dirty.
Dmytro Vasin·Oct 21, 2017Version inheritance in CarrierwaveСarrierwave is a popular image upload gem used by the Rails community to upload files to the server.