Sha256: 5e1a7040224ee7b4be2f15ed82ba2a3af1e00a9b657f72dc975846902477c87b

Contents?: true

Size: 482 Bytes

Versions: 5

Compression:

Stored size: 482 Bytes

Contents

require 'devise/version'

module DeviseInvitable
  module Mailer

    # Deliver an invitation email
    def invitation_instructions(record, opts={})
      # optional arguments introduced in Devise 2.2.0, remove check once support for < 2.2.0 is dropped.
      if Gem::Version.new(Devise::VERSION.dup) < Gem::Version.new('2.2.0')
        devise_mail(record, :invitation_instructions)
      else
        devise_mail(record, :invitation_instructions, opts)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
devise_invitable-1.2.1 lib/devise_invitable/mailer.rb
devise_invitable-1.1.8 lib/devise_invitable/mailer.rb
devise_invitable-1.1.7 lib/devise_invitable/mailer.rb
devise_invitable-1.1.6 lib/devise_invitable/mailer.rb
devise_invitable-1.1.5 lib/devise_invitable/mailer.rb