Sha256: 9b1da1ed8c05a3885ea16e6986e8f61ac3f0adb7a6ad6d62143f04ddac8aaf5c

Contents?: true

Size: 151 Bytes

Versions: 31

Compression:

Stored size: 151 Bytes

Contents

require 'digest/sha1'
class Thing < ActiveRecord::Base
  has_friendly_id :name, :use_slug => true do |text|
    Digest::SHA1::hexdigest(text)
  end
end

Version data entries

31 entries across 31 versions & 8 rubygems

Version Path
dougcole-friendly_id-2.0.6 test/models/thing.rb
nateabbott-friendly_id-2.1.4 test/models/thing.rb
nateabbott-friendly_id-2.1.7 test/models/thing.rb
nateabbott-friendly_id-2.1.8 test/models/thing.rb
nateabbott-nateabbott-friendly_id-2.1.5 test/models/thing.rb
nateabbott-nateabbott-friendly_id-2.1.6 test/models/thing.rb
norman-friendly_id-2.0.4 test/models/thing.rb
norman-friendly_id-2.1.0 test/models/thing.rb
norman-friendly_id-2.1.1 test/models/thing.rb
norman-friendly_id-2.1.2 test/models/thing.rb
norman-friendly_id-2.1.3 test/models/thing.rb
norman-friendly_id-2.1.4 test/models/thing.rb
nwp-friendly_id-2.1.3 test/models/thing.rb
rakutenusa-friendly_id-2.0.6 test/models/thing.rb
rakutenusa-friendly_id-2.0.7 test/models/thing.rb
rakutenusa-friendly_id-2.0.8 test/models/thing.rb
rakutenusa-friendly_id-2.0.9 test/models/thing.rb
friendly_id-2.1.5 test/models/thing.rb
friendly_id-2.2.5 test/models/thing.rb
friendly_id-2.2.4 test/models/thing.rb