Skip to content

Instantly share code, notes, and snippets.

@blasterpal
Created November 16, 2010 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save blasterpal/701972 to your computer and use it in GitHub Desktop.
Save blasterpal/701972 to your computer and use it in GitHub Desktop.
Rails Custom Config
module MaxMedia
module Configuration
def ldap
MaxMedia
end
end
class << self
attr_accessor :server, :port, :query, :content_group, :approval_group, :publish_group, :bind_user, :password, :user_base
end
end
Rails::Configuration.send :include, Maxmedia::Configuration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment