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

Support for models without an error method #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tjdavey
Copy link

@tjdavey tjdavey commented May 28, 2020

Does not attempt to draw errors if the model provided to a form does not contain an errors method. Also adds two additional tests to test rendering fields with an ActiveRecord model and an OpenStruct 'model'.

Fixes #24

@coveralls
Copy link

coveralls commented May 28, 2020

Pull Request Test Coverage Report for Build 155

  • 17 of 17 (100.0%) changed or added relevant lines in 2 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.1%) to 99.802%

Totals Coverage Status
Change from base Build 154: -0.1%
Covered Lines: 1007
Relevant Lines: 1009

💛 - Coveralls

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Models without error hash generate undefined method '[]' for nil:NilClass
2 participants