@@ -17,6 +17,7 @@ module OhlohUi
 
     config.autoload_paths << "#{Rails.root}/app/exceptions"
     config.autoload_paths << "#{Rails.root}/lib"
+    config.autoload_paths << "#{Rails.root}/models/badges"
   end
 end
 
require File.expand_path('../boot', __FILE__)
require 'rails/all'

Bundler.require(*Rails.groups)

require 'dotenv'
Dotenv.load '.env.local', ".env.#{Rails.env}"

module OhlohUi
  class Application < Rails::Application
    config.generators.stylesheets = false
    config.generators.javascripts = false
    config.generators.helper = false
    config.action_controller.include_all_helpers = false
    config.active_record.schema_format = :sql
    config.active_record.raise_in_transactional_callbacks = true

    config.autoload_paths << "#{Rails.root}/app/exceptions"
    config.autoload_paths << "#{Rails.root}/lib"
  end
end

Dir["#{Rails.root}/app/lib/acts_as_editable/*.rb"].each { |file| require file }
Dir["#{Rails.root}/app/lib/acts_as_protected/*.rb"].each { |file| require file }

Why does the model/badges directory specifically need to be placed in application.rb? Should it not load already be loaded with the other models?