Commit 217b1d47 authored by Etienne Baqué's avatar Etienne Baqué

Removed use of constantize to make check simpler

parent 6ada9d89
......@@ -16,8 +16,8 @@ module AuditEventsHelper
end
def custom_message_for(details)
target_type = details[:target_type].constantize
target_type = details[:target_type]
val = details[:custom_message]
target_type == Operations::FeatureFlag ? val : val.tr('_', ' ')
target_type == 'Operations::FeatureFlag' ? val : val.tr('_', ' ')
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment