lib/gris/output_formatters/presenter.rb in gris-0.4.3 vs lib/gris/output_formatters/presenter.rb in gris-0.4.4

- old
+ new

@@ -7,9 +7,16 @@ def self.included(base) base.class_eval do include Roar::JSON::HAL include Roar::Hypermedia include Grape::Roar::Representer + + private + + def request_url(opts) + request = Grape::Request.new(opts[:env]) + "#{request.base_url}#{opts[:env]['PATH_INFO']}" + end end end end end