geothird_friendly_id 4.0.9.6 → 4.0.9.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/friendly_id.rb +1 -1
- data/lib/friendly_id/migration.rb +6 -6
- data/lib/friendly_id/slug.rb +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 590b9ee0101b51a41c1a8676891e5245a0bdbb55
|
4
|
+
data.tar.gz: a4234e8d235f8f87877112182f53aa857d6013ac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffbfe3662868b6acd468088e217e0491fee518c99127d05c044c7f8c3e9c979c95b0134a269ff9cf8e1728182f5484037162ae7f40aae04c849e65d5d974c01c
|
7
|
+
data.tar.gz: 77771114f5d921d999f6d5363910f6c5cf7a0a6cf9c9fa6077258d7a66fdea21d2f655dd274857edf5a929210bf6a8f17f73be4982f07ee36d7d03b7bacc8725
|
data/lib/friendly_id.rb
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
class
|
1
|
+
class CreateSlugs < ActiveRecord::Migration
|
2
2
|
|
3
3
|
def self.up
|
4
|
-
create_table :
|
4
|
+
create_table :slugs do |t|
|
5
5
|
t.string :slug, :null => false
|
6
6
|
t.integer :sluggable_id, :null => false
|
7
7
|
t.string :sluggable_type, :limit => 40
|
8
8
|
t.datetime :created_at
|
9
9
|
t.deleted_at :boolean
|
10
10
|
end
|
11
|
-
add_index :
|
12
|
-
add_index :
|
13
|
-
add_index :
|
11
|
+
add_index :slugs, :sluggable_id
|
12
|
+
add_index :slugs, [:slug, :sluggable_type], :unique => true
|
13
|
+
add_index :slugs, :sluggable_type
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.down
|
17
|
-
drop_table :
|
17
|
+
drop_table :slugs
|
18
18
|
end
|
19
19
|
end
|
data/lib/friendly_id/slug.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geothird_friendly_id
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.9.
|
4
|
+
version: 4.0.9.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Norman Clarke
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: acts_as_paranoid
|