spud_permalinks 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/app/models/spud_permalink.rb +2 -1
- data/lib/spud_permalinks/version.rb +1 -1
- metadata +5 -5
@@ -1,6 +1,7 @@
|
|
1
1
|
class SpudPermalink < ActiveRecord::Base
|
2
2
|
belongs_to :attachment,:polymorphic => true
|
3
|
-
validates :url_name, :presence => true
|
3
|
+
validates :url_name, :presence => true
|
4
|
+
validates_uniqueness_of :url_name, :scope => :site_id
|
4
5
|
validates :attachment_type, :presence => true
|
5
6
|
validates :attachment_id, :presence => true
|
6
7
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spud_permalinks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-03-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70291128687020 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 3.2.2
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70291128687020
|
25
25
|
description: This gem creates a polymorphic attachable model that can be used to store
|
26
26
|
historical information on page urls for 301 redirecting.
|
27
27
|
email:
|
@@ -82,7 +82,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
82
82
|
version: '0'
|
83
83
|
segments:
|
84
84
|
- 0
|
85
|
-
hash:
|
85
|
+
hash: -1185826205084132050
|
86
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
87
|
none: false
|
88
88
|
requirements:
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
segments:
|
93
93
|
- 0
|
94
|
-
hash:
|
94
|
+
hash: -1185826205084132050
|
95
95
|
requirements: []
|
96
96
|
rubyforge_project:
|
97
97
|
rubygems_version: 1.8.15
|