Class: ActiveRecord::ConnectionAdapters::Column

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#parent_record_classObject

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_hintObject



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_nameObject



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