Module: GoldRecord::Fixtures
- Defined in:
- lib/gold_record/fixtures.rb
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/gold_record/fixtures.rb', line 3 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 |