I have a Ruby class that I will use only for the console, these are the monkeys of the ActiveRecord::Base patches with some shortcuts, such as ua for update_attribute , and I do not want to load it when running the rails server , but only when the rails console command is run.
What is the way to achieve this?
source share