Class: ActiveRecord::ConnectionAdapters::Column
- Inherits:
-
Object
- Object
- ActiveRecord::ConnectionAdapters::Column
- Defined in:
- lib/guilded/rails/active_record/human_attribute_hint.rb,
lib/guilded/rails/active_record/human_attribute_override.rb
Overview
An abstract definition of a column in a table.
Instance Attribute Summary collapse
-
#parent_record_class ⇒ Object
the active record class that this column is associated with.
Instance Method Summary collapse
Instance Attribute Details
#parent_record_class ⇒ Object
the active record class that this column is associated with
34 35 36 |
# File 'lib/guilded/rails/active_record/human_attribute_hint.rb', line 34 def parent_record_class @parent_record_class end |
Instance Method Details
#human_hint ⇒ Object
36 37 38 |
# File 'lib/guilded/rails/active_record/human_attribute_hint.rb', line 36 def human_hint (@parent_record_class || Base).human_attribute_hint(@name) end |
#human_name ⇒ Object
36 37 38 |
# File 'lib/guilded/rails/active_record/human_attribute_override.rb', line 36 def human_name (@parent_record_class || Base).human_attribute_name(@name) end |