Skip to content

Conversation

@pvmeerbe
Copy link
Contributor

taken from #217 (@boffbowsh)

Relying on Class#name for model naming breaks compatibility with
anonymous models. The ActiveModel::Naming#model_name method is
preferred

Also, don’t attempt to get help text for nil objects. This was
previously attempting to lookup activerecord.help.nil_class.field_name or similar.

@mattbrictson
Copy link
Contributor

Hi, thanks for the PR (including tests, awesome!). I haven't had a chance to review yet, but it is on my todo list.

@mattbrictson
Copy link
Contributor

Excellent work, thank you! 🙇

Can you also add an entry to the CHANGELOG under the "pending release" heading, please? Then I will merge this PR.

@pvmeerbe
Copy link
Contributor Author

done

@mattbrictson
Copy link
Contributor

Can you resolve the merge conflicts and rebase, please? Your changelog entry will need to go under the new "pending release" section. Thanks for your continued help on this!

Pieter Vanmeerbeek and others added 2 commits August 31, 2016 09:32
taken from bootstrap-ruby#217 (@boffbowsh)

Relying on Class#name for model naming breaks compatibility with
anonymous models. The ActiveModel::Naming#model_name method is
preferred

Also, don’t attempt to get help text for nil objects. This was
previously attempting to lookup activerecord.help.nil_class.field_name or similar.
@pvmeerbe
Copy link
Contributor Author

no problem & done

@mattbrictson
Copy link
Contributor

Thank you 🎉

@mattbrictson mattbrictson merged commit 7492861 into bootstrap-ruby:master Aug 31, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants