wheels 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/app/models/sitemap.rb +4 -2
  3. data/wheels.gemspec +1 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.4
1
+ 0.1.5
@@ -144,8 +144,10 @@ class Sitemap < ActiveRecord::Base
144
144
  end
145
145
 
146
146
  def treeview_state
147
- if resource.is_a?(ExternalLink) || children.empty?
148
- "leaf"
147
+ if resource.is_a?(Menu)
148
+ "open"
149
+ elsif resource.is_a? Page
150
+ "closed"
149
151
  else
150
152
  "open"
151
153
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wheels}
8
- s.version = "0.1.4"
8
+ s.version = "0.1.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tyler Gannon"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 4
9
- version: 0.1.4
8
+ - 5
9
+ version: 0.1.5
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tyler Gannon