Sha256: 24ddff4184add3d823a809cceb0d646db011b1a2ae971d4ca06c0ae26814b36c
Contents?: true
Size: 641 Bytes
Versions: 2
Compression:
Stored size: 641 Bytes
Contents
require 'bootstrap-navbar' module BootstrapNavbar class Railtie < Rails::Railtie config.after_initialize do # If Bootstrap version isn't set yet and the gem bootstrap-sass is loaded, sniff the Bootstrap version from it if BootstrapNavbar.configuration.bootstrap_version.nil? && Gem.loaded_specs.keys.include?('bootstrap-sass') bootstrap_sass_version = Gem.loaded_specs['bootstrap-sass'].version bootstrap_version = bootstrap_sass_version.segments.take(3).join('.') BootstrapNavbar.configure do |config| config.bootstrap_version = bootstrap_version end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bootstrap-navbar-1.0.1 | lib/bootstrap-navbar/railtie.rb |
bootstrap-navbar-1.0.0.pre8 | lib/bootstrap-navbar/railtie.rb |