wheels 0.1.7 → 0.1.8

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 -1
  3. data/wheels.gemspec +1 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.7
1
+ 0.1.8
@@ -53,7 +53,10 @@ class Sitemap < ActiveRecord::Base
53
53
  end
54
54
 
55
55
  def create_resource
56
- self.resource ||= resource_type.constantize.new unless self.resource_id || resource_type.nil?
56
+ if self.resource_type && !self.resource_id
57
+ self.resource = resource_type.constantize.new
58
+ self.save
59
+ end
57
60
  end
58
61
 
59
62
  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.7"
8
+ s.version = "0.1.8"
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
- - 7
9
- version: 0.1.7
8
+ - 8
9
+ version: 0.1.8
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tyler Gannon