Sha256: 5780b1a1e550465c44e6194818655c3c805f8eefd03db409cd0897a386efe1df
Contents?: true
Size: 494 Bytes
Versions: 207
Compression:
Stored size: 494 Bytes
Contents
# encoding: utf-8 module Mongoid #:nodoc: # 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
207 entries across 115 versions & 6 rubygems