lib/active_uxid/base.rb in active_uxid-1.0.12 vs lib/active_uxid/base.rb in active_uxid-1.0.13

- old
+ new

@@ -5,10 +5,11 @@ def initialize @config = ActiveUxid.configuration end - %w[encoding_chars encoding_length encoding_salt].each do |setting| + ActiveUxid.configuration.instance_variables.each do |setting| + setting = setting.to_s.tr(':@', '') define_method(setting) { @config.send(setting) } end def encoding_base encoding_chars.length