Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor to use the uuidtools gem and add callback override option #2

Closed
wants to merge 4 commits into from
Closed

Conversation

inetdavid
Copy link

Refactor to use the uuidtools gem instead of an ancient uuidtools.rb
(which doesn't work with Ruby 1.9.3).

Add configuration option to specify which callback to use to set the
GUID field (currently defaulted to :before_create to match documentation
and ActiveRecord::Base behavior).

David Schmidt added 2 commits September 3, 2014 15:49
(which doesn't work with Ruby 1.9.3).

Add configuration option to specify which callback to use to set the
GUID field (currently defaulted to :before_create to match documentation
and ActiveRecord::Base behavior).
@midas
Copy link
Owner

midas commented Sep 4, 2014

I like it. However, before I merge, please remove the version increment as I would like to be able to do that just before the release as a separate commit.

I will increment the version to 1.2 as this is a small breaking change for some people and not a bug fix.

@inetdavid
Copy link
Author

Version number has been reverted. I also found a bug caused by the fact that our id field is replaced with a string GUID but with the same name. Because of that, we need to see if the current id is zero, null or an empty string. The ||= doesn't cover all those cases but .blank? properly does.

@inetdavid
Copy link
Author

Is there anything else you'd like done before you merge in my pull request?

I'd like to change back to bundling this gem from the standard locations instead of having to point to my own fork.

@inetdavid inetdavid closed this by deleting the head repository Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants