Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
skip_invitation documentation wrong? #296
I might be missing something, but the skip_invitation documentation doesn't seem correct to me. It shows:
User.invite!(:email => "email@example.com", :name => "John Doe") do |u| u.skip_invitation = true end # => the record will be created, but the invitation email will not be sent
However, invite! doesn't seem to yield anywhere so this doesn't work as far as I can tell.
This comment has been minimized.
This comment has been minimized.Show comment Hide comment
What are you getting? record should be created and email sending skipped. Is that what you get?
invite! call _invite, which yields when there is no error: