app/controllers/api_controller/normalizer.rb
#
# Let's normalize a URL
#
# Note, all URL's are baselined as per the request specifying versioning and such.
#
Let's normalize a URL
Note, all URL's are baselined as per the request specifying versioning and such.
Let ' s normalize a URL Note all URL ' s are baselined as per the request specifying versioning and such .
def normalize_url(_type, value)
      svalue = value.to_s
      pref   = @req[:api_prefix]
      svalue.match(pref) ? svalue : "#{pref}/#{svalue}"
    end
def normalize_url ( _type , value ) svalue = value . to_s pref = @req [ :api_prefix ] svalue . match ( pref ) ? svalue : "#{pref}/#{svalue}" end
Let's normalize a URL
Note, all URL's are baselined as per the request specifying versioning and such.
Let ' s normalize a URL Note all URL ' s are baselined as per the request specifying versioning and such .
_type
<not_specific>
value
<not_specific>