Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

debug

  • Loading branch information...
commit 94e517900c323f323b3633157bc87508637129ca 1 parent cca7ac6
Beamer W. BeamerCola authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/mongoid_token.rb
2  lib/mongoid_token.rb
View
@@ -11,7 +11,7 @@ def token(*args)
options[:retry] ||= 3
options[:contains] ||= :alphanumeric
options[:field_name] ||= :token
- options[:callbacks] = true if options[:callbacks] == true
+ options[:callbacks] = true if options[:callbacks] != false
self.field options[:field_name].to_sym, :type => String
self.index options[:field_name].to_sym, :unique => true
Please sign in to comment.
Something went wrong with that request. Please try again.