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 pagination/blank_slate i18n and add specs #644

Merged

Conversation

felixbuenemann
Copy link
Contributor

This uses proper model i18n when resolving the collection name and adds a new option :entries_name to specify the plural to be able to pass in the correct plural_resource_name. I added unit tests for the functionality in page_entries_info that should have good coverage.

Also fix blank_slate to use correct plural_resource_name instead of pluralize.

In addition a new option :entries_name was added to allow
specifying the collections plural. Updated index to use
this.
Testing the page_entries_info behaviour. Also removed excess white
space.
mattvague added a commit that referenced this pull request Oct 19, 2011
Fix pagination/blank_slate i18n and add specs
@mattvague mattvague merged commit 3c039c6 into activeadmin:master Oct 19, 2011
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