railhead_permalink 0.1.17 → 0.1.18
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/railhead_permalink.rb +4 -5
- data/railhead_permalink.gemspec +2 -2
- metadata +6 -6
data/lib/railhead_permalink.rb
CHANGED
@@ -11,14 +11,14 @@ module RailheadPermalink
|
|
11
11
|
class << self
|
12
12
|
alias_method_chain :find, :permalink
|
13
13
|
end
|
14
|
-
|
14
|
+
class_attribute :permalink_options
|
15
15
|
|
16
|
-
|
16
|
+
self.permalink_options = {
|
17
17
|
:field => field,
|
18
18
|
:keep_existing => (options[:keep_existing] || false),
|
19
|
-
:reserved_names => (options[:reserved_names] || [])
|
19
|
+
:reserved_names => (options[:reserved_names] || []),
|
20
20
|
:unique => (options[:unique] || false)
|
21
|
-
}
|
21
|
+
}
|
22
22
|
|
23
23
|
before_save :create_permalink
|
24
24
|
validates_presence_of field
|
@@ -59,4 +59,3 @@ end
|
|
59
59
|
|
60
60
|
|
61
61
|
ActiveRecord::Base.send :include, RailheadPermalink
|
62
|
-
|
data/railhead_permalink.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = "railhead_permalink"
|
3
|
-
s.version = "0.1.
|
4
|
-
s.date = "
|
3
|
+
s.version = "0.1.18"
|
4
|
+
s.date = "2012-02-27"
|
5
5
|
s.summary = "RailheadPermalink is a Ruby on Rails plugin that automatically finds ActiveRecord objects with permalink."
|
6
6
|
s.email = "nagybence@tipogral.hu"
|
7
7
|
s.homepage = "http://github.com/nagybence/railhead_permalink"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: railhead_permalink
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 63
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 18
|
10
|
+
version: 0.1.18
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Bence Nagy
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-02-27 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements: []
|
65
65
|
|
66
66
|
rubyforge_project:
|
67
|
-
rubygems_version: 1.
|
67
|
+
rubygems_version: 1.3.7
|
68
68
|
signing_key:
|
69
69
|
specification_version: 3
|
70
70
|
summary: RailheadPermalink is a Ruby on Rails plugin that automatically finds ActiveRecord objects with permalink.
|