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

Fix regenerating slug when regeneration condition overriden (fixes #521) #541

Closed
wants to merge 2 commits into from

Conversation

arnvald
Copy link

@arnvald arnvald commented Mar 21, 2014

Currently the scope excluding updated object is applied when checking candidates
only if slug column is changed. This does not work in case when
should_generate_new_friendly_id? is overriden. This commit fixes the problem
by always excluding updated object from checking candidates

Here's the issue: #521

…rman#521)

Currently the scope excluding updated object is applied when checking candidates
only if slug column is changed. This does not work in case when
should_generate_new_friendly_id? is overriden. This commit fixes the problem
by always excluding updated object from checking candidates
@PikachuEXE
Copy link
Contributor

@arnvald Please also add code + test for scoped module like #513

@norman Do you remember why if changed.include?(friendly_id_config.slug_column) is there?

@arnvald
Copy link
Author

arnvald commented Apr 1, 2014

Hey! Any update on the issue? I'd love to see this bug fixed in master, so I can use original repo in my application.

I've added support for scoped module.

@PikachuEXE
Copy link
Contributor

@arnvald Still waiting for @norman to answer my question at #541 (comment)

@parndt
Copy link
Collaborator

parndt commented May 26, 2014

@PikachuEXE blame shows 70a6d5a

@norman
Copy link
Owner

norman commented May 29, 2014

Closing in favor of #562.

@norman norman closed this May 29, 2014
@arnvald arnvald deleted the fix-slug-regenerating branch May 30, 2014 05:01
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.

4 participants