class SimpleNavigation::Adapters::Padrino

Public Class Methods

register() click to toggle source
# File lib/simple_navigation/adapters/padrino.rb, line 4
def self.register
  SimpleNavigation.set_env(PADRINO_ROOT, RACK_ENV)
  ::Padrino::Application.send(:helpers, SimpleNavigation::Helpers)
end

Public Instance Methods

content_tag(type, content, options = {}) click to toggle source
# File lib/simple_navigation/adapters/padrino.rb, line 13
def content_tag(type, content, options = {})
  context.content_tag(type, content.html_safe, options)
end