module Payture::Helper

Public Class Methods

convert_to_underscore(key) click to toggle source
# File lib/payture/helper.rb, line 3
def self.convert_to_underscore(key)
  key.scan(/[A-Z][a-z]*/).join("_").downcase
end