lib/hashid/rails/configuration.rb in hashid-rails-1.0.0 vs lib/hashid/rails/configuration.rb in hashid-rails-1.1.0

- old
+ new

@@ -1,16 +1,21 @@ module Hashid module Rails class Configuration - attr_accessor :salt, :min_hash_length, :alphabet, :override_find + attr_accessor :salt, + :min_hash_length, + :alphabet, + :override_find, + :sign_hashids def initialize @salt = "" @min_hash_length = 6 @alphabet = "abcdefghijklmnopqrstuvwxyz" \ "ABCDEFGHIJKLMNOPQRSTUVWXYZ" \ "1234567890" @override_find = true + @sign_hashids = true end def for_table(table_name) ["#{table_name}#{salt}", min_hash_length, alphabet] end