rails_bootstrap_easy_navbar 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,6 +18,7 @@ module RailsBootstrapEasyNavbar
18
18
 
19
19
  # Creates the navbar wrapper optionally containing a brand on the left hand side
20
20
  def navbar_inner(current_tab, nav_items, options={})
21
+ contents = []
21
22
  unless nav_items.blank?
22
23
  #create responsive collapsible layout if requested
23
24
  contents = [
@@ -31,8 +32,8 @@ module RailsBootstrapEasyNavbar
31
32
 
32
33
  #create brand
33
34
  if options[:brand]
34
- options[:brand_path] ||= DEFAULT_BRAND_PATH
35
- contents.insert(0, (content_tag(:a, options[:brand], href: options[:brand_path], class: "brand")))
35
+ options[:brand_path] ||= DEFAULT_BRAND_PATH
36
+ contents.insert(0, (content_tag(:a, options[:brand], href: options[:brand_path], class: "brand")))
36
37
  end
37
38
 
38
39
  #inject raw html if requested
@@ -1,3 +1,3 @@
1
1
  module RailsBootstrapEasyNavbar
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_bootstrap_easy_navbar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: