Sha256: 9218c642099a340e90721cd6c158aff0beb34fdf3c91af2c2cb056497ed3c8d4

Contents?: true

Size: 739 Bytes

Versions: 1

Compression:

Stored size: 739 Bytes

Contents

class DevisePreview < ActionMailer::Preview
  if User.devise_modules.include? :confirmable
    def confirmation_instructions
      Devise::Mailer.confirmation_instructions(user, "tokentokentoken")
    end
  end

  def reset_password_instructions
    Devise::Mailer.reset_password_instructions(user, "tokentokentoken")
  end

  if User.devise_modules.include? :lockable
    def unlock_instructions
      Devise::Mailer.unlock_instructions(user, "tokentokentoken")
    end
  end

  if User.devise_modules.include? :invitable
    def invitation_instructions
      Devise::Mailer.invitation_instructions(user, "tokentokentoken")
    end
  end

  protected
    def user
      User.first || User.new( email: "will@happyfuncorp.com" )
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
happy_seed-0.0.21 lib/generators/happy_seed/devise/templates/spec/mailers/previews/devise_preview.rb