Class: Ezframe::IdType

Inherits:
IntType 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 IntType

#db_type, #value=, #view

Methods inherited from TextType

#db_type, #normalize, #value=

Methods inherited from TypeBase

#db_type, #db_value, #form_html, get_class, #initialize, #key, #multi_inputs?, #no_edit?, #no_view?, #normalize, type_name, #validate, #value, #value=, #view

Constructor Details

This class inherits a constructor from Ezframe::TypeBase

Instance Method Details

#form(opts = {}) ⇒ Object



215
216
217
# File 'lib/ezframe/column_type.rb', line 215

def form(opts = {})
  return nil
end

#labelObject



210
211
212
213
# File 'lib/ezframe/column_type.rb', line 210

def label
  return nil if no_view?
  return "ID"
end