wheels 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/app/models/sitemap.rb +1 -2
- data/wheels.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
data/app/models/sitemap.rb
CHANGED
@@ -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