I am using the Monologue Gem and Devise Gem.
I am using config autoload_paths to load my subdirectories which include some presentation models.
Rails 4: organize rails models in sub path without namespacing models?
app/config/application.rb
config.autoload_paths += Dir[Rails.root.join('app', 'models', '{*/}')]
My issue, I believe, stems from when I needed to override the Monologue User model. To do so I created a local file
app/models/monologue/user.rb
class Monologue::User < ActiveRecord::Base
# code
end
I also have my app's user model at
app/models/user.rb
class User < ActiveRecord::Base
# code
end
The error that I am recieving is
ruby-2.1.5/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:481:in `load_missing_constant': Unable to autoload constant User, expected /Users/Shared/code/kindrdfood/RecRm/app/models/monologue/user.rb to define it (LoadError)