lib/acts_as_diffable.rb
# reduce the key out of an array to a single string if only one element
reduce the key out of an array to a single string if only one element
reduce the key out of an array to a single string if only one element
def keyify(keyset)
          case keyset.size
          when 1
            keyset[0]
          else
            keyset
          end
        end
def keyify ( keyset ) case keyset . size when 1 keyset [ 0 ] else keyset end end
reduce the key out of an array to a single string if only one element
reduce the key out of an array to a single string if only one element
keyset
<not_specific>