Module: Sinatra::Sammy

Defined in:
lib/sinatra/sammy.rb

Defined Under Namespace

Modules: Helpers

Constant Summary collapse

VERSION =
'0.0.1'

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object



38
39
40
41
42
43
44
# File 'lib/sinatra/sammy.rb', line 38

def self.registered(app)
  app.helpers ::Sinatra::Sammy::Helpers
  
  app.before do
    self.class.layout { false } if params['_sammy']
  end
end