I have a couple of classes that are only used with the rake command. I understand that rake tasks usually live @ lib / tasks / whatever.rake, but where should I place helper classes?
Thanks!
$RAILS_ROOT/lib or $RAILS_ROOT/lib/special_task/ is likely to be the best as the default download path, and you can do simple require 'my_task_helper' or require 'special_task/helper' respectively.
$RAILS_ROOT/lib
$RAILS_ROOT/lib/special_task/
require 'my_task_helper'
require 'special_task/helper'
Directly inside "lib" if you are loading the Rails framework for tasks.
You can also make them plugins if there are too many.
Source: https://habr.com/ru/post/893528/More articles:Display dynamic text in Android view - javahttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/893524/what-happens-to-objects-passed-between-dependent-phpunit-tests&usg=ALkJrhid8KgltSz2yRB1XFk2gMtdioecMwCreate a new branch from the master, and then bring the master back to a specific commit - gitThe correct way to remove a trigger is c #Getting an identifier inside a PostgreSQL transaction block - sqlNecessary overhead help for garbage collection - javaSubfolders in lib - ruby-on-railsundefined `groups' method for Rails: module - ruby-on-rails-3Getting a domain URL with regular expressions - stringIs there a quick way to get documentation on the features and symbols of OpenGL ES in Xcode? - xcodeAll Articles