allow usage of ensure_unique with auto-generated strings outside record create cycle #5

Open
wants to merge 2 commits into
from

2 participants

@npj
npj commented Jul 6, 2011

re-write autogenerated identifiers in such a way that ensure_unique can be applied to records outside of the create cycle. this is useful for adding new, uniquified columns to an existing model and generating the identifiers.

PJ Brindisi added some commits Jul 6, 2011
PJ Brindisi re-write autogenerated identifiers in such a way that ensure_unique c…
…an be applied to records outside of the create cycle. this is useful for adding new, uniquified columns to an existing model and generating the identifiers.
9cc10dc
PJ Brindisi bump gem version in gemspec 5f707ab
@masterkain

Another use for this is that you may want a new unique value on every save so you can use the method in another callback, +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment