devise_suspendable icon indicating copy to clipboard operation
devise_suspendable copied to clipboard

compile error

Open skwp opened this issue 14 years ago • 2 comments

devise_suspendable/model.rb:38: syntax error, unexpected '=', expecting ')' self.save(:validate = false) if self.changed?

I think you meant self.save(validate=false) or something like that...

skwp avatar Apr 14 '10 17:04 skwp

I think you are right, I'll have a look into it and get back to you.

(What I really need is a test suite!)

joshk avatar Apr 14 '10 17:04 joshk

You don't need the validatable stuff in the save, just allow nil in the length validation.

This works for me: http://gist.github.com/466214 (Only checked suspension, not unsuspension since I don't need that)

rurounijones avatar Jul 07 '10 02:07 rurounijones