Class: ActiveRecord::ConnectionAdapters::Column

Inherits:
Object
  • Object
show all
Defined in:
lib/gettext_activerecord/schema_definitions.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.



15
16
17
# File 'lib/gettext_activerecord/schema_definitions.rb', line 15

def table_class
  @table_class
end

Instance Method Details

#human_name_with_gettext_activerecordObject



18
19
20
21
22
23
24
# File 'lib/gettext_activerecord/schema_definitions.rb', line 18

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