lib/mailkick/model.rb in mailkick-0.1.5 vs lib/mailkick/model.rb in mailkick-0.1.6

- old
+ new

@@ -1,8 +1,8 @@ module Mailkick module Model - def mailkick_user(options = {}) - email_key = options[:email_key] || :email + def mailkick_user(opts = {}) + email_key = opts[:email_key] || :email class_eval do scope :opted_out, proc {|options = {}| binds = [self.class.name, true] if options[:list] query = "(mailkick_opt_outs.list IS NULL OR mailkick_opt_outs.list = ?)"