Skip to content

Instantly share code, notes, and snippets.

@johndel
Created March 21, 2013 18:01
Show Gist options
  • Save johndel/5215194 to your computer and use it in GitHub Desktop.
Save johndel/5215194 to your computer and use it in GitHub Desktop.
gsadmin/lib/gsadmin.rb for understanding configuration variables from file gsadmin.rb
require "gsadmin/engine"
require "rails"
module Gsadmin
class Engine < Rails::Engine
end
def self.config(&block)
yield Engine.config if block
Engine.config
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment