wheels 0.1.5 → 0.1.6

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 +1 -2
  3. data/wheels.gemspec +1 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.1.6
@@ -15,7 +15,6 @@ class Sitemap < ActiveRecord::Base
15
15
  validates :resource, :presence=>true
16
16
  accepts_nested_attributes_for :children
17
17
 
18
-
19
18
  def reload_root
20
19
  Sitemap.instance_variable_set('@_root', nil)
21
20
  end
@@ -54,7 +53,7 @@ class Sitemap < ActiveRecord::Base
54
53
  end
55
54
 
56
55
  def create_resource
57
- self.resource ||= resource_type.constantize.new unless resource_type.nil?
56
+ self.resource ||= resource_type.constantize.new unless self.resource_id || resource_type.nil?
58
57
  end
59
58
 
60
59
  def url
data/wheels.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{wheels}
8
- s.version = "0.1.5"
8
+ s.version = "0.1.6"
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
- - 5
9
- version: 0.1.5
8
+ - 6
9
+ version: 0.1.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tyler Gannon