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

Commits on Oct 31, 2019

  1. Allow configuring whether to_param is overridden

    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 committed Oct 31, 2019
    Configuration menu
    Copy the full SHA
    aa8fd89 View commit details
    Browse the repository at this point in the history