Updated

app/models/concerns / custom_attributes.rb

A
12 lines of codes
1 methods
13.2 complexity/method
3 churn
13.24 complexity
0 duplications
module CustomAttributes
  1. CustomAttributes has no descriptive comment
extend ActiveSupport::Concern def custom_attribute_display_name(attribute_key) account.custom_attribute_definitions.where( attribute_model: "#{self.class.name.downcase}_attribute", attribute_key: attribute_key ).first.attribute_display_name rescue StandardError attribute_key end end