{"action":"created","issue":{"url":"https://api.github.com/repos/scambra/devise_invitable/issues/601","labels_url":"https://api.github.com/repos/scambra/devise_invitable/issues/601/labels{/name}","comments_url":"https://api.github.com/repos/scambra/devise_invitable/issues/601/comments","events_url":"https://api.github.com/repos/scambra/devise_invitable/issues/601/events","html_url":"https://github.com/scambra/devise_invitable/issues/601","id":115029558,"number":601,"title":"Sending both confirmable and invitable emails","user":{"login":"ssnake","id":193212,"avatar_url":"https://avatars.githubusercontent.com/u/193212?v=3","gravatar_id":"","url":"https://api.github.com/users/ssnake","html_url":"https://github.com/ssnake","followers_url":"https://api.github.com/users/ssnake/followers","following_url":"https://api.github.com/users/ssnake/following{/other_user}","gists_url":"https://api.github.com/users/ssnake/gists{/gist_id}","starred_url":"https://api.github.com/users/ssnake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssnake/subscriptions","organizations_url":"https://api.github.com/users/ssnake/orgs","repos_url":"https://api.github.com/users/ssnake/repos","events_url":"https://api.github.com/users/ssnake/events{/privacy}","received_events_url":"https://api.github.com/users/ssnake/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-04T11:08:39Z","updated_at":"2015-11-05T09:04:46Z","closed_at":"2015-11-05T09:04:46Z","body":"Happening to me with:\r\ndevise (3.5.2)\r\ndevise_invitable (1.5.3)\r\n\r\nmy model:\r\n```ruby\r\nclass User < ActiveRecord::Base\r\n...\r\n  devise :invitable, :database_authenticatable, :registerable, :confirmable, \r\n         :recoverable, :rememberable, :trackable, :validatable\r\n...\r\nend\r\n```\r\n\r\nmy controller method:\r\n\r\n```ruby\r\n  def send_invitation\r\n    @record = User.new email: params[:email]\r\n    @record.company = current_company\r\n    \r\n    \r\n    if @record.invalid?\r\n      @errors = @record.errors \r\n      @errors.delete(:password) #ignore password absence\r\n    else\r\n      @errors = {}\r\n    end\r\n\r\n\r\n    @record.save!(validate: false) if  @errors.empty?\r\n    \r\n    @record.invite! if @errors.empty?\r\n    \r\n    respond_to do |format|\r\n        format.js {}\r\n    end\r\n  end\r\n```\r\n\r\nconfirmation_instructions is fired first, then invitation_instructions"},"comment":{"url":"https://api.github.com/repos/scambra/devise_invitable/issues/comments/153995745","html_url":"https://github.com/scambra/devise_invitable/issues/601#issuecomment-153995745","issue_url":"https://api.github.com/repos/scambra/devise_invitable/issues/601","id":153995745,"user":{"login":"ssnake","id":193212,"avatar_url":"https://avatars.githubusercontent.com/u/193212?v=3","gravatar_id":"","url":"https://api.github.com/users/ssnake","html_url":"https://github.com/ssnake","followers_url":"https://api.github.com/users/ssnake/followers","following_url":"https://api.github.com/users/ssnake/following{/other_user}","gists_url":"https://api.github.com/users/ssnake/gists{/gist_id}","starred_url":"https://api.github.com/users/ssnake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ssnake/subscriptions","organizations_url":"https://api.github.com/users/ssnake/orgs","repos_url":"https://api.github.com/users/ssnake/repos","events_url":"https://api.github.com/users/ssnake/events{/privacy}","received_events_url":"https://api.github.com/users/ssnake/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T09:04:46Z","updated_at":"2015-11-05T09:04:46Z","body":"Thanks. This solved my issue."}}