lib/lockbox/utils.rb in lockbox-0.3.3 vs lib/lockbox/utils.rb in lockbox-0.3.4

- old
+ new

@@ -1,8 +1,9 @@ module Lockbox class Utils def self.build_box(context, options, table, attribute) options = options.except(:attribute, :encrypted_attribute, :migrating, :attached, :type) + options[:encode] = false unless options.key?(: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)