Sha256: 4c73e65ba02ce4b330ae20ea4832519b3062a50d1bebb6d04588bc56af7c173f

Contents?: true

Size: 425 Bytes

Versions: 5

Compression:

Stored size: 425 Bytes

Contents

module DatabaseDocumenter
  module DatabaseComment
    def self.get_comment_class(adapter=current_adapter)
      if adapter == "postgresql"
        DatabaseDocumenter::DatabaseComment::PostgresDatabaseComment
      else
        DatabaseDocumenter::DatabaseComment::MysqlDatabaseComment
      end
    end

    def self.current_adapter
      DatabaseDocumenter.configuration.database_configuration['adapter']
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
database_documenter-0.1.11 lib/database_documenter/database_comment.rb
database_documenter-0.1.10 lib/database_documenter/database_comment.rb
database_documenter-0.1.9 lib/database_documenter/database_comment.rb
database_documenter-0.1.8 lib/database_documenter/database_comment.rb
database_documenter-0.1.7 lib/database_documenter/database_comment.rb