lib/workos/deprecated_hash_wrapper.rb
def object_name
      i = class_name.rindex('::')
      object_name = i ? class_name[(i + 2)..-1] : class_name
      underscore(object_name)
    end
# We want to do class_name.demodulize.underscore here, but that's not available in Ruby 1.9, so
# implementing the demodulize and underscore methods here.
We want to do class_name.demodulize.underscore here, but that's not available in Ruby 1.9, so
implementing the demodulize and underscore methods here.
We want to do class_name . demodulize . underscore here but that ' s not available in Ruby 1 . 9 so implementing the demodulize and underscore methods here .
def object_name
      i = class_name.rindex('::')
      object_name = i ? class_name[(i + 2)..-1] : class_name
      underscore(object_name)
    end
def object_name i = class_name . rindex ( '::' ) object_name = i ? class_name [ ( i + 2 ) .. - 1 ] : class_name underscore ( object_name ) end
We want to do class_name.demodulize.underscore here, but that's not available in Ruby 1.9, so
implementing the demodulize and underscore methods here.
We want to do class_name . demodulize . underscore here but that ' s not available in Ruby 1 . 9 so implementing the demodulize and underscore methods here .