Sha256: 281bb73c9683b8eaa59b03dcd546e12e077846ad97e351aa843e558b9842641a
Contents?: true
Size: 811 Bytes
Versions: 1
Compression:
Stored size: 811 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 if Gem.loaded_specs.keys.include?('bootstrap-sass') bootstrap_sass_version = Gem.loaded_specs['bootstrap-sass'].version bootstrap_version = bootstrap_sass_version.to_s[0..4] config.bootstrap_version = bootstrap_version end end ActionView::Base.send :include, BootstrapNavbar::Helpers end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_bootstrap_navbar-1.0.1.pre1 | lib/rails_bootstrap_navbar/railtie.rb |