Initializers load only when the rails start (and never reboot). When you redo config/initializers, you will restart the rails every time.
Of course, you can make sure that your code is defined in /lib, so you can still make sure that it works using your test suite.
. lib/speaker.rb
module Speaker
def speak
puts "Ahum, listen: #{self.to_s}"
end
end
-
class String
include Speaker
end
, .
, .