Sha256: 404b87693653a485e3c3e166df66af0088654d5a3e664cc09b0dd37f953c6093

Contents?: true

Size: 276 Bytes

Versions: 4

Compression:

Stored size: 276 Bytes

Contents

require 'rest_client'

module RestPack
  class BaseProxy
    def self.raise_exceptions_if_required(response)
      if !response.success?
        case(response.status)
        when :not_found
          raise ActiveRecord::RecordNotFound
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
restpack_activity-0.0.5 lib/restpack_activity/proxies/base_proxy.rb
restpack_activity-0.0.4 lib/restpack_activity/proxies/base_proxy.rb
restpack_activity-0.0.3 lib/restpack_activity/proxies/base_proxy.rb
restpack_activity-0.0.2 lib/restpack_activity/proxies/base_proxy.rb