laserlemon/figaro

View on GitHub
lib/figaro/rails/application.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Figaro
  module Rails
    class Application < Figaro::Application
      private

      def default_path
        rails_not_initialized! unless ::Rails.root

        ::Rails.root.join("config", "application.yml")
      end

      def default_environment
        ::Rails.env
      end

      def rails_not_initialized!
        raise RailsNotInitialized
      end
    end
  end
end