Sha256: 457abeba6a1356203343f0d71261edcc67aede59587d55a84e5b66e31429909d
Contents?: true
Size: 624 Bytes
Versions: 16
Compression:
Stored size: 624 Bytes
Contents
module ActiveExt module DataStructures class Column attr_accessor :name, :association, :column, :options def initialize(name, active_record_class) @name = name.to_sym @column = active_record_class.columns_hash[self.name.to_s] @association = active_record_class.reflect_on_association(self.name) @active_record_class = active_record_class @table = active_record_class.table_name #set default options @options = {:required => false, :readonly => false} end def sql_type @column.type end end end end
Version data entries
16 entries across 16 versions & 1 rubygems