Class: Ezframe::TimeType

Inherits:
TextType show all
Defined in:
lib/ezframe/column_type.rb

Instance Attribute Summary

Attributes inherited from TypeBase

#attribute, #error, #parent

Instance Method Summary collapse

Methods inherited from TextType

#db_type, #form, #normalize, #value=

Methods inherited from TypeBase

#db_type, #form, get_class, #initialize, #key, #label, #make_error_box, #multi_inputs?, #no_edit?, #no_view?, #normalize, #type, type_name, #use_view_format, #validate, #value, #value=, #view

Constructor Details

This class inherits a constructor from Ezframe::TypeBase

Instance Method Details

#db_valueObject



427
428
429
430
# File 'lib/ezframe/column_type.rb', line 427

def db_value
  return nil if @value.nil? || @value.strip.empty?
  return @value
end