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 to use model name from I18n ransack scope #514

Merged

Conversation

nagyt234
Copy link
Contributor

This simple pull request allow us to use I18n model names from ransack scope, not only from activerecord scope, similarly as for attribute names.
Background:

  1. I need in attribute select different name for the base model as generally.
  2. So is the using of I18n in ransack unified.

jonatack added a commit that referenced this pull request Mar 12, 2015
Enable I18n scoping by 'ransack.models'
@jonatack jonatack merged commit af91584 into activerecord-hackery:master Mar 12, 2015
@jonatack
Copy link
Contributor

@nagyt234 Thank you! Could you add a test?

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.

2 participants