Sha256: ece36708bea97c00726c954caae80ee915b9c36c18a981436c9ce470247b1c88

Contents?: true

Size: 243 Bytes

Versions: 3

Compression:

Stored size: 243 Bytes

Contents

require 'roar/json/json_api'

# FIXME: Hack. Add another module to Roar JSON API to hook into.
Roar::JSON::JSONAPI::Document.class_eval do
  def to_json_api(*args);   to_json(*args);   end
  def from_json_api(*args); from_json(*args); end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/roar-rails-1.2.0/lib/roar/rails/json_api.rb
roar-rails-1.2.0 lib/roar/rails/json_api.rb
roar-rails-1.1.0 lib/roar/rails/json_api.rb