Module: Sinatra::ELS
- Defined in:
- lib/sinatra/els.rb
Defined Under Namespace
Class Method Summary collapse
Class Method Details
.registered(app) ⇒ Object
91 92 93 94 95 96 97 |
# File 'lib/sinatra/els.rb', line 91 def self.registered(app) app.helpers ELS::Helpers app.register ELS::Auth # When including, set the els_opts hash. eg. #app.set :els_opts, YAML.load_file(File.join(app.settings.root, 'config','els.yml'))[app.settings.environment.to_s] end |