Sha256: f8637569b9441acff0f3311da32a0c02dfc8a08a6f2e6ecf6c2367193708c26b
Contents?: true
Size: 359 Bytes
Versions: 2
Compression:
Stored size: 359 Bytes
Contents
module Ahnnotate class Abilities def initialize(connection) @connection = connection @adapter_name = connection.adapter_name.downcase end def foreign_key? if @adapter_name == "sqlite" return false end if !@connection.respond_to?(:foreign_keys) return false end true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ahnnotate-0.5.1 | lib/ahnnotate/abilities.rb |
ahnnotate-0.5.0 | lib/ahnnotate/abilities.rb |