Method: Attributor.humanize_context
- Defined in:
- lib/attributor.rb
.humanize_context(context) ⇒ Object
53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/attributor.rb', line 53 def self.humanize_context(context) return '' unless context context = Array(context) if context.is_a? ::String begin context.join('.') rescue e raise "Error creating context string: #{e.message}" end end |