class FlattenRecord::Meta::IdColumn
Public Class Methods
new(parent, primary_key, target_model, model)
click to toggle source
Calls superclass method
FlattenRecord::Meta::Column::new
# File lib/flatten_record/meta/id_column.rb, line 4 def initialize(parent, primary_key, target_model, model) super(parent, primary_key, target_model, model) end
Public Instance Methods
name()
click to toggle source
Calls superclass method
FlattenRecord::Meta::Column#name
# File lib/flatten_record/meta/id_column.rb, line 8 def name column_name = super is_parent_root? ? target_model_name + "_" + column_name : column_name end