I wrote a generator that is of concern to the user for inclusion in their model. It works correctly on Rails 4.1.8, but on Rails 4.2.0 I get this message:
LoadError: Unable to autoload constant Concerns::NameSearch.
NameSearchis the anxiety module that the generator creates app/models/concerns/name_search.rb:
module NameSearch
extend ActiveSupport::Concern
included do
...
end
module ClassMethods
...
end
private
...
end
But in the model I’m simple include NameSearch. I get an error when I run the rake (jump) task after turning on the problem. The application really works correctly, it's just a rake task that throws an error. And the rake task also seems to have done the job, but in the end this error. Again, this worked fine in 4.1.8, but not in 4.2.0. Any idea what has changed?
Daiku