Module: Payture::Helper

Defined in:
lib/payture/helper.rb

Class Method Summary collapse

Class Method Details

.convert_to_underscore(key) ⇒ Object



3
4
5
# File 'lib/payture/helper.rb', line 3

def self.convert_to_underscore(key)
  key.scan(/[A-Z][a-z]*/).join("_").downcase
end