wheels 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- 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