Converts UIDs to predictable UUIDs.
Add this line to your application's Gemfile:
gem 'legacy_uuid', github: "everydayhero/legacy_uuid"
And then execute:
$ bundle
Or install it yourself as:
$ gem install legacy_uuid
LegacyUUID.from_campaign("au-123") # => "eda1e64c-0001-4000-8000-00000000007b"
LegacyUUID.from_charity("au-123") # => "edb1e64c-0001-4000-8000-00000000007b"
LegacyUUID.from_page("au-123") # => "edc1e64c-0001-4000-8000-00000000007b"
LegacyUUID.from_team("au-123") # => "edd1e64c-0001-4000-8000-00000000007b"
- Fork it ( https://github.com/[my-github-username]/legacy_uuid/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request