Sha256: 2a33c80ab1265085109d50444e3bce184d280e0271e7768e3dfc047d84d7dd4f

Contents?: true

Size: 493 Bytes

Versions: 2

Compression:

Stored size: 493 Bytes

Contents

require 'mongo_mapper/strict_keys'

module MongoMapper
  module Plugins
    module StrictKeys
      module Bang
        extend ActiveSupport::Concern

        module ClassMethods
          # Includes the MongoMapper::Plugins::StrictKeys MongoMapper Plugin
          # @see MongoMapper::Plugins::StrictKeys
          def strict_keys!
            self.send(:include, ::MongoMapper::Plugins::StrictKeys)
          end
        end

        module InstanceMethods; end

      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mongo_mapper-strict_keys-0.0.5 lib/mongo_mapper/strict_keys/bang.rb
mongo_mapper-strict_keys-0.0.4 lib/mongo_mapper/strict_keys/bang.rb