It's only used as a workaround for factories not being able to create
pending users while keeping active as the default
end
# Used in test suite, not something that we would normally need to do.
end
# Used in test suite, not something that we would normally need to do.
- event :deactivate do
- transitions :from => :active, :to => :pending
+ if Rails.env.test?
+ event :deactivate do
+ transitions :from => :active, :to => :pending
+ end
end
# To confirm an account is used to override the spam scoring
end
# To confirm an account is used to override the spam scoring