Sha256: 7e5813fb6725d935f94a602e8c4ad5d9f85c16f2b9bb795075a65bc5ac018725

Contents?: true

Size: 502 Bytes

Versions: 11

Compression:

Stored size: 502 Bytes

Contents

# Copyright (c) 2008-2013 Michael Dvorkin and contributors.
#
# Fat Free CRM is freely distributable under the terms of MIT license.
# See MIT-LICENSE file or http://www.opensource.org/licenses/mit-license.php
#------------------------------------------------------------------------------
class CustomFieldDatetimePair < CustomFieldDatePair

  def render(value)
    value && value.strftime(I18n.t("time.formats.mmddhhss"))
  end

  ActiveSupport.run_load_hooks(:fat_free_crm_datetime_pair, self)

end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
fat_free_crm-0.13.6 app/models/fields/custom_field_datetime_pair.rb
fat_free_crm-0.13.5 app/models/fields/custom_field_datetime_pair.rb
fat_free_crm-0.13.4 app/models/fields/custom_field_datetime_pair.rb
fat_free_crm-0.13.3 app/models/fields/custom_field_datetime_pair.rb
fat_free_crm-0.13.2 app/models/fields/custom_field_datetime_pair.rb
fat_free_crm-0.12.3 app/models/fields/custom_field_datetime_pair.rb
fat_free_crm-0.12.2 app/models/fields/custom_field_datetime_pair.rb
fat_free_crm-0.13.1 app/models/fields/custom_field_datetime_pair.rb
fat_free_crm-0.12.1 app/models/fields/custom_field_datetime_pair.rb
fat_free_crm-0.13.0 app/models/fields/custom_field_datetime_pair.rb
fat_free_crm-0.12.0 app/models/fields/custom_field_datetime_pair.rb