Module: Phlex::Hanami::ContextHelper

Includes:
Hanami::Helpers::AssetsHelper
Defined in:
lib/phlex/hanami/context_helper.rb

Instance Method Summary collapse

Instance Method Details

#assetsObject



6
# File 'lib/phlex/hanami/context_helper.rb', line 6

def assets(...) = context.assets

#content_forObject



12
# File 'lib/phlex/hanami/context_helper.rb', line 12

def content_for(...) = context.content_for

#csrf_tokenObject



14
# File 'lib/phlex/hanami/context_helper.rb', line 14

def csrf_token(...) = context.csrf_token

#flashObject



18
# File 'lib/phlex/hanami/context_helper.rb', line 18

def flash(...) = context.flash

#requestObject



8
# File 'lib/phlex/hanami/context_helper.rb', line 8

def request(...) = context.request

#routesObject



10
# File 'lib/phlex/hanami/context_helper.rb', line 10

def routes(...) = context.routes

#sessionObject



16
# File 'lib/phlex/hanami/context_helper.rb', line 16

def session(...) = context.session