Sha256: 958a33475a853566fae90207b8379185f4a01dfbdb96353fe90c24f031ef4708
Contents?: true
Size: 541 Bytes
Versions: 6
Compression:
Stored size: 541 Bytes
Contents
require 'bootstrap-navbar' module BootstrapNavbar::Helpers def prepare_html(html) html.html_safe end end module RailsBootstrapNavbar class Railtie < Rails::Railtie config.after_initialize do BootstrapNavbar.configure do |config| config.current_url_method = if Rails.version >= '3.2' 'request.original_url' else '[request.protocol, request.host_with_port, request.fullpath].join' end end ActionView::Base.send :include, BootstrapNavbar::Helpers end end end
Version data entries
6 entries across 6 versions & 1 rubygems