Sha256: 857f42ed0040ad28ac1986a1a46a63fbd250c94ca99821f3c19d472a2f51e911
Contents?: true
Size: 348 Bytes
Versions: 5
Compression:
Stored size: 348 Bytes
Contents
module ActiveForm def self.included(base) base.class_eval do alias_method :save, :valid? def self.columns() @columns ||= []; end def self.column(name, sql_type = nil, default = nil, null = true) columns << ActiveRecord::ConnectionAdapters::Column.new(name.to_s, default, sql_type, null) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems