- config / Initializers / whatever.rb
- No
- nope ... initializers load when the application loads
- No
- Yeah. Rails autoload will look for it.
- , :
lib/encryptable.rb( app/models/problems, 4), .
include Encryptable ( ) :
ActiveRecord::Base.class_eval do
include Encryptable
end
4: Rails 4