Skip to content

Conversation

@boffbowsh
Copy link

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.

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 `active
record.help.nil_class.field_name` or similar.
@boffbowsh boffbowsh closed this Sep 23, 2015
pvmeerbe pushed a commit to pvmeerbe/rails-bootstrap-forms that referenced this pull request Aug 12, 2016
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 pushed a commit to pvmeerbe/rails-bootstrap-forms that referenced this pull request Aug 12, 2016
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 pushed a commit to pvmeerbe/rails-bootstrap-forms that referenced this pull request Aug 31, 2016
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.
mattbrictson pushed a commit that referenced this pull request Aug 31, 2016
* Don't rely on Class#name for model naming

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.

* Update CHANGELOG.md
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.

1 participant