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

Transliteration possible? #22

Open
Frexuz opened this issue Jun 20, 2015 · 0 comments
Open

Transliteration possible? #22

Frexuz opened this issue Jun 20, 2015 · 0 comments

Comments

@Frexuz
Copy link

Frexuz commented Jun 20, 2015

show.name
=> "Σαββατογεννημένες"
[9] pry(main)> show.generate_permalink!
   (13.6ms)  SELECT COUNT(*) FROM `shows`  WHERE (permalink = '')
  Show Load (150.6ms)  SELECT `shows`.* FROM `shows`  WHERE (permalink LIKE '%')  ORDER BY id
=> "-1000044"

The permalink generation runs on before_validation which is the first callback in the callback chain.
So is there a way to hook into before the generation is run, or some other way to solve this?

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

No branches or pull requests

1 participant