Skip to content

Instantly share code, notes, and snippets.

@abloom
Created March 25, 2010 19:30
Show Gist options
  • Save abloom/344005 to your computer and use it in GitHub Desktop.
Save abloom/344005 to your computer and use it in GitHub Desktop.
module Frylock
attr_accessor :app
def config
@config ||= Frylock::Config.new(app || Rails)
end
end
class Frylock::Config
attr_reader :environment, :logger, :root
def initialize(app)
@environment = app.respond_to?(:env) ? app.env : app.environment
...
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment