/usr/lib/ruby/vendor_ruby/simple_navigation/adapters/padrino.rb is in ruby-simple-navigation 3.11.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | module SimpleNavigation
module Adapters
class Padrino < Sinatra
def self.register
SimpleNavigation.set_env(PADRINO_ROOT, PADRINO_ENV)
::Padrino::Application.send(:helpers, SimpleNavigation::Helpers)
end
def link_to(name, url, options={})
context.link_to(name, url, options)
end
def content_tag(type, content, options={})
context.content_tag(type, content.html_safe, options)
end
end
end
end
|