Sha256: 3e11c5fd9fc1755ccde9388d2ee84f1f4c0b010d86379adaf2e4cde92c8d9cd7

Contents?: true

Size: 311 Bytes

Versions: 5

Compression:

Stored size: 311 Bytes

Contents

require 'singleton'

module SchemaPlus::DbDefault
  class DbDefault
    include Singleton
    def to_s
      'DEFAULT'
    end
    def id
      self
    end
    def quoted_id
      self
    end
  end
  DB_DEFAULT = DbDefault.instance
end

::ActiveRecord.const_set :DB_DEFAULT, SchemaPlus::DbDefault::DB_DEFAULT

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
schema_plus-2.0.0.pre10 lib/schema_plus/db_default/db_default.rb
schema_plus-2.0.0.pre9 lib/schema_plus/db_default/db_default.rb
schema_plus-2.0.0.pre8 lib/schema_plus/db_default/db_default.rb
schema_plus-2.0.0.pre7 lib/schema_plus/db_default/db_default.rb
schema_plus-2.0.0.pre6 lib/schema_plus/db_default/db_default.rb