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

Allow configuring whether to_param is overridden #68

Merged
merged 1 commit into from
Oct 31, 2019

Conversation

jcypret
Copy link
Owner

@jcypret jcypret commented Oct 31, 2019

By default, hashid-rails overrides the to_param method on models to return a hashid. This lets link_to and other Rails helpers "just work." But there might be cases where you don't want this to happen, so now you can turn it off in the config globally or on a per-model basis.

By default, hashid-rails overrides the `to_param` method on models to
return a hashid. This lets `link_to` and other Rails helpers "just
work". But there might be cases where you don't want this to happen, so
now you can turn it off in the config globally or on a per-model basis.
@jcypret jcypret merged commit 21b23c8 into master Oct 31, 2019
@jcypret jcypret deleted the config-override-to-param branch October 31, 2019 03:34
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.

None yet

1 participant