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 58c14675467260738ca0e14b9e46a53fcb331cfa 1 parent 05869d8
@BeamerCola BeamerCola authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/mongoid_token.rb
View
3  lib/mongoid_token.rb
@@ -17,7 +17,8 @@ def token(*args)
self.index options[:field_name].to_sym, :unique => true
# should validate token presence? Should this be enforced?
- puts options[:callbacks]
+ puts options
+ puts args.inspect
if options[:callbacks]
set_callback(:create, :before) do |document|
document.create_token(options[:length], options[:contains])
Please sign in to comment.
Something went wrong with that request. Please try again.