consul/consul

View on GitHub
app/models/concerns/human_name.rb

Summary

Maintainability
A
0 mins
Test Coverage
module HumanName
  def human_name
    %i[title name subject].each do |method|
      return send(method) if respond_to?(method)
    end

    raise "Must implement a method defining a human name"
  end
end