Class: CustomFieldDatetimePair

Inherits:
CustomFieldDatePair show all
Defined in:
app/models/fields/custom_field_datetime_pair.rb

Overview

Copyright © 2008-2013 Michael Dvorkin and contributors.

Fat Free CRM is freely distributable under the terms of MIT license. See MIT-LICENSE file or www.opensource.org/licenses/mit-license.php


Constant Summary

Constants inherited from CustomField

CustomField::SAFE_DB_TRANSITIONS

Constants inherited from Field

Field::BASE_FIELD_TYPES

Instance Method Summary collapse

Methods inherited from CustomFieldDatePair

#custom_validator, #render_value

Methods inherited from CustomFieldPair

create_pair, #paired_with, update_pair

Methods inherited from CustomField

#available_as, #custom_validator

Methods inherited from Field

#collection_string, #collection_string=, #column_type, field_types, #input_options, lookup_class, register, #render_value

Instance Method Details

#render(value) ⇒ Object



9
10
11
# File 'app/models/fields/custom_field_datetime_pair.rb', line 9

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