Sha256: 33f73fbed50da23e795a4d688d986dc67daeb480d2bc77b681e722283da5f395

Contents?: true

Size: 234 Bytes

Versions: 59

Compression:

Stored size: 234 Bytes

Contents

# frozen_string_literal: true

module Effective
  module TableRows
    class EmailField < Effective::TableRow

      def content
        value.to_s.include?('@') ? template.mail_to(value) : value.presence
      end

    end
  end
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
effective_bootstrap-1.19.10 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.19.9 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.19.8 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.19.7 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.19.6 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.19.5 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.19.4 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.19.3 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.19.2 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.19.1 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.19.0 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.18.7 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.18.4 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.18.3 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.18.2 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.18.1 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.18.0 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.17.6 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.17.5 app/models/effective/table_rows/email_field.rb
effective_bootstrap-1.17.4 app/models/effective/table_rows/email_field.rb