Class: ActiveRecord::ConnectionAdapters::Column
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::Column
- Defined in:
- lib/gettext/active_record.rb
Overview
An abstract definition of a column in a table.
Instance Attribute Summary collapse
-
#table_class ⇒ Object
Returns the value of attribute table_class.
Instance Method Summary collapse
Instance Attribute Details
#table_class ⇒ Object
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_gettext ⇒ Object
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 |