Sha256: 6e6478ab7de915ba6ce1b92cea3bd5ed83f07e684cb8cb2eaabb6f9a1e446a18

Contents?: true

Size: 384 Bytes

Versions: 14

Compression:

Stored size: 384 Bytes

Contents

module FieldTest
  module Mailer
    extend ActiveSupport::Concern
    include Helpers

    included do
      helper_method :field_test
      helper_method :field_test_converted
      helper_method :field_test_experiments
    end

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

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
field_test-0.7.0 lib/field_test/mailer.rb
field_test-0.6.1 lib/field_test/mailer.rb
field_test-0.6.0 lib/field_test/mailer.rb
field_test-0.5.5 lib/field_test/mailer.rb
field_test-0.5.4 lib/field_test/mailer.rb
field_test-0.5.3 lib/field_test/mailer.rb
field_test-0.5.2 lib/field_test/mailer.rb
field_test-0.5.1 lib/field_test/mailer.rb
field_test-0.5.0 lib/field_test/mailer.rb
field_test-0.4.1 lib/field_test/mailer.rb
field_test-0.4.0 lib/field_test/mailer.rb
field_test-0.3.2 lib/field_test/mailer.rb
field_test-0.3.1 lib/field_test/mailer.rb
field_test-0.3.0 lib/field_test/mailer.rb