module RestInPlace

Constants

VERSION

Public Class Methods

include_root_in_json?() click to toggle source
# File lib/rest_in_place.rb, line 8
def self.include_root_in_json?
  if defined?(Mongoid)
    if defined? Mongoid::Config
      Mongoid::Config.include_root_in_json
    else
      Mongoid.config.include_root_in_json
    end
  elsif defined?(ActiveRecord)
    ActiveRecord::Base.include_root_in_json
  else
    false
  end
end