lib/lockbox/utils.rb in lockbox-0.2.0 vs lib/lockbox/utils.rb in lockbox-0.2.1

- old
+ new

@@ -1,8 +1,8 @@ class Lockbox class Utils def self.build_box(context, options, table, attribute) - options = options.except(:attribute, :encrypted_attribute, :migrating, :attached) + options = options.except(:attribute, :encrypted_attribute, :migrating, :attached, :type, :encode) options.each do |k, v| if v.is_a?(Proc) options[k] = context.instance_exec(&v) if v.respond_to?(:call) elsif v.is_a?(Symbol) options[k] = context.send(v)