Method: ModelBase::ColumnAttribute#initialize
- Defined in:
- lib/model_base/column_attribute.rb
#initialize(model, name, type, column: nil, reference: nil, index_type: false, title: false, attr_options: {}) ⇒ ColumnAttribute
Returns a new instance of ColumnAttribute.
13 14 15 16 17 18 19 |
# File 'lib/model_base/column_attribute.rb', line 13 def initialize(model, name, type, column: nil, reference: nil, index_type: false, title: false, attr_options: {}) super(name, type, index_type, ) @model = model @reference = reference @column = column @title = !!title end |