Class: ActiveRecord::ConnectionAdapters::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/gettext/active_record.rb

Overview

An abstract definition of a column in a table.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#table_classObject

Returns the value of attribute table_class.



37
38
39
# File 'lib/gettext/active_record.rb', line 37

def table_class
  @table_class
end

Instance Method Details

#human_name_with_gettextObject



40
41
42
43
44
45
46
# File 'lib/gettext/active_record.rb', line 40

def human_name_with_gettext
  if table_class
    table_class.human_attribute_name(@name)
  else
    @name.humanize
  end
end