Sha256: 6e5985b82c0d913077753597ba126ee73bf99ea66864fed9d882c429f202cc8d

Contents?: true

Size: 381 Bytes

Versions: 4

Compression:

Stored size: 381 Bytes

Contents

module GoldRecord
  module Fixtures
    def self.included(base)
      base.class_eval do
        class << self
          # Patch Fixtures.identify for binary UUIDs.
          def identify_with_padding(label)
            ("%-16d" % identify_without_padding(label)).tr(" ", "\0")
          end
          alias_method_chain :identify, :padding
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gold-record-0.2.2 lib/gold_record/fixtures.rb
gold-record-0.2.1 lib/gold_record/fixtures.rb
gold-record-0.2.0 lib/gold_record/fixtures.rb
gold-record-0.1.0 lib/gold_record/fixtures.rb