Module: FieldTest::Mailer

Extended by:
ActiveSupport::Concern
Includes:
Helpers
Defined in:
lib/field_test/mailer.rb

Instance Method Summary collapse

Methods included from Helpers

#field_test, #field_test_converted, #field_test_experiments

Instance Method Details

#field_test_participantObject



12
13
14
15
16
17
18
# File 'lib/field_test/mailer.rb', line 12

def field_test_participant
  if @user
    @user
  elsif respond_to?(:params) && params
    params[:user]
  end
end