geothird_friendly_id 4.0.9.6 → 4.0.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 865522c23934f0ec1b360a57d3659b07137ed2c3
4
- data.tar.gz: c3e371c31cddcfce242dfcade11eedde48b7e5b7
3
+ metadata.gz: 590b9ee0101b51a41c1a8676891e5245a0bdbb55
4
+ data.tar.gz: a4234e8d235f8f87877112182f53aa857d6013ac
5
5
  SHA512:
6
- metadata.gz: 7253a59b9bd02bbc45c0935420d988d39c1fa2654e7c02feca1c5e59afeec6d72631c395364daa6e1232c5ee5ee1ab4fa33cf56927a2884df50d525460965725
7
- data.tar.gz: 732091b1b707108e8158dd4c2b21605ddd98d1cd9b1f9a178b0043ad0b9c578eaa7c9060b6bf342e7f397942d8d2f93b5f4f72aba73f40e7d1f2d9c8c7257ea9
6
+ metadata.gz: ffbfe3662868b6acd468088e217e0491fee518c99127d05c044c7f8c3e9c979c95b0134a269ff9cf8e1728182f5484037162ae7f40aae04c849e65d5d974c01c
7
+ data.tar.gz: 77771114f5d921d999f6d5363910f6c5cf7a0a6cf9c9fa6077258d7a66fdea21d2f655dd274857edf5a929210bf6a8f17f73be4982f07ee36d7d03b7bacc8725
data/lib/friendly_id.rb CHANGED
@@ -45,7 +45,7 @@ with numeric ids:
45
45
  module FriendlyId
46
46
 
47
47
  # The current version.
48
- VERSION = "4.0.9.6"
48
+ VERSION = "4.0.9.7"
49
49
 
50
50
  @mutex = Mutex.new
51
51
 
@@ -1,19 +1,19 @@
1
- class CreateFriendlyIdSlugs < ActiveRecord::Migration
1
+ class CreateSlugs < ActiveRecord::Migration
2
2
 
3
3
  def self.up
4
- create_table :friendly_id_slugs do |t|
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 :friendly_id_slugs, :sluggable_id
12
- add_index :friendly_id_slugs, [:slug, :sluggable_type], :unique => true
13
- add_index :friendly_id_slugs, :sluggable_type
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 :friendly_id_slugs
17
+ drop_table :slugs
18
18
  end
19
19
  end
@@ -4,7 +4,6 @@ module FriendlyId
4
4
  # @see FriendlyId::History
5
5
  class Slug < ActiveRecord::Base
6
6
  acts_as_paranoid column_type: 'boolean'
7
- self.table_name = "friendly_id_slugs"
8
7
  belongs_to :sluggable, :polymorphic => true
9
8
 
10
9
  def to_param
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.6
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-03 00:00:00.000000000 Z
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