Class: ActiveRecord::ConnectionAdapters::Column
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::Column
- Defined in:
- lib/gettext_activerecord/schema_definitions.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.
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_activerecord ⇒ Object
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 |