I usually follow the ActiveSupport convention, which would have to place them in lib/core_ext/#{class}.rb - in this case lib/core_ext/array.rb . As John Hyland points out, you can either explicitly request a file where necessary, or place the require statement in initializers.
source share