Skip to content

Refactor policy class lookup

Mark Chao requested to merge refactor-compute_class_for_class into master

What does this MR do?

Currently the lookup may check whether a class respond to declarative_policy_class multiple times, which can be avoided.

Since declarative_policy_class is a very specific method, I think it is safe to assume whoever take use of this will define the correct class name, therefore we don't have to rescue error when calling constantize.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Kamil Trzciński

Merge request reports