Sha256: 9064aaa77c6cf17ec493e0508187ed19a8bf1b86a14a35d67155293653fb9476
Contents?: true
Size: 310 Bytes
Versions: 2
Compression:
Stored size: 310 Bytes
Contents
module ActiveRecord module UUID module TableDefinition def references(*args) options = args.extract_options! options[:type] = :uuid unless options.include?(:type) args << options super(*args) end alias_method :belongs_to, :references end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ar-uuid-0.1.2 | lib/active_record/uuid/table_definition.rb |
ar-uuid-0.1.1 | lib/active_record/uuid/table_definition.rb |