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

Never re-raise NameError and always default to CollectionDecorator #795

Merged
merged 4 commits into from
Apr 4, 2017

Conversation

codebycliff
Copy link
Collaborator

Description

This pull request makes it so that NameError is never re-raised when calling collection_decorator_class. This makes it so that it always defaults to Draper::CollectionDecorator. The NameError that we would be silencing would have been caused by us to begin with. See the original pull request for full detail:

minor fix to error raising on collection decoration.

Testing

See the original pull request comments.

To-Dos

None

References

@syguer
Copy link
Contributor

syguer commented Apr 4, 2017

LGTM 👍

@codebycliff codebycliff merged commit 9490a57 into master Apr 4, 2017
@codebycliff codebycliff deleted the almaron-master branch April 4, 2017 03:24
codebycliff added a commit to codebycliff/draper that referenced this pull request Apr 4, 2017
codebycliff added a commit that referenced this pull request May 8, 2017
* Release 3.0.0

* Add breaking change #768 to changelog.

* Add recently merged changes to the changelog.

* Add configuration and custom default controller to the changelog.

* Add entry to changelog for pull request 720

* Add entry to changelog for Rails 5 API-only support.

* Add changelog entry for pull request #795.

* Add changelog entry for pull request #796.

* Add changelog entry for enumerable optimization.

* Update maintainer information in README.

* Add pull request #799 to changelog.

* Add compatability documentation to readme.
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.

3 participants