Sha256: 60fc752662f3c094e1080b5c0c0815be22cb3c04a7eca26f348af9e3a8316939
Contents?: true
Size: 482 Bytes
Versions: 32
Compression:
Stored size: 482 Bytes
Contents
# encoding: utf-8 module Mongoid # This module is for hooking in to +ActiveModel+s serialization to let # configuring the ability to include the root in JSON happen from the Mongoid # config. module JSON extend ActiveSupport::Concern # We need to redefine where the JSON configuration is getting defined, # similar to +ActiveRecord+. included do undef_method :include_root_in_json delegate :include_root_in_json, to: ::Mongoid end end end
Version data entries
32 entries across 32 versions & 2 rubygems