Skip to content

[Rails5] Fix enum question mark methods

What does this MR do?

Rails 5.0 autogenerated question mark enum methods return wrong result if enum value is nil.
They always return false.

This MR adds methods that overwrite autogenerated ones to return correct results.

Are there points in the code the reviewer needs to double check?

No.

Why was this MR needed?

Migration to Rails 5.0.

Screenshots (if relevant)

No.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

#14286 (closed) and !12841 (closed)

Merge request reports

Loading