if defined?(Rails::Railtie)
  module RailsConfig
    class Railtie < Rails::Railtie
      config.rails_config = ActiveSupport::OrderedOptions.new

      # Parse the settings before any of the initializers
      ActiveSupport.on_load :before_initialize, :yield => true do
        settings = RailsConfig.load_files(
          Rails.root.join("config", "settings.yml").to_s,
          Rails.root.join("config", "settings", "#{Rails.env}.yml").to_s,
          Rails.root.join("config", "environments", "#{Rails.env}.yml").to_s
        )

        # setup the constant
        Kernel.const_set(app.config.rails_config.constant || "Settings", settings)
      end

      # Rails Dev environment should reload the Settings on every request
      if Rails.env.development?
        initializer :rails_config_reload_on_development do
          ActionController::Base.class_eval do
            prepend_before_filter { ::Settings.reload! }
          end
        end
      end

    end
  end
end

if defined?(Rails::Railtie)
  module RailsConfig
    class Railtie < Rails::Railtie

      # Parse the settings before any of the initializers
      ActiveSupport.on_load :before_initialize, :yield => true do
        ::Settings = RailsConfig.load_files(
          Rails.root.join("config", "settings.yml").to_s,
          Rails.root.join("config", "settings", "#{Rails.env}.yml").to_s,
          Rails.root.join("config", "environments", "#{Rails.env}.yml").to_s
        )
      end

      # Rails Dev environment should reload the Settings on every request
      if Rails.env.development?
        initializer :rails_config_reload_on_development do
          ActionController::Base.class_eval do
            prepend_before_filter { ::Settings.reload! }
          end
        end
      end

    end
  end
end

--- 
+++ 
@@ -1,14 +1,18 @@
 if defined?(Rails::Railtie)
   module RailsConfig
     class Railtie < Rails::Railtie
+      config.rails_config = ActiveSupport::OrderedOptions.new
 
       # Parse the settings before any of the initializers
       ActiveSupport.on_load :before_initialize, :yield => true do
-        ::Settings = RailsConfig.load_files(
+        settings = RailsConfig.load_files(
           Rails.root.join("config", "settings.yml").to_s,
           Rails.root.join("config", "settings", "#{Rails.env}.yml").to_s,
           Rails.root.join("config", "environments", "#{Rails.env}.yml").to_s
         )
+
+        # setup the constant
+        Kernel.const_set(app.config.rails_config.constant || "Settings", settings)
       end
 
       # Rails Dev environment should reload the Settings on every request
Add the ability to define the settings object via config.rails_config.constant