lib/mongoid.rb in mongoid-2.0.0.rc.3 vs lib/mongoid.rb in mongoid-2.0.0.rc.4
- old
+ new
@@ -1,8 +1,8 @@
# encoding: utf-8
-# Copyright (c) 2009, 2010 Durran Jordan
+# Copyright (c) 2009 - 2011 Durran Jordan and friends.
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
@@ -50,11 +50,10 @@
require "mongoid/config"
require "mongoid/contexts"
require "mongoid/copyable"
require "mongoid/criteria"
require "mongoid/cursor"
-require "mongoid/deprecation"
require "mongoid/default_scope"
require "mongoid/dirty"
require "mongoid/extras"
require "mongoid/factory"
require "mongoid/field"
@@ -120,20 +119,9 @@
def configure
config = Mongoid::Config
block_given? ? yield(config) : config
end
alias :config :configure
-
- # Easy convenience method for generating an alert from the
- # deprecation module.
- #
- # @example Alert a deprecation.
- # Mongoid.deprecate("Method no longer used")
- #
- # @param [ String ] message The message to print.
- def deprecate(message)
- Mongoid::Deprecation.alert(message)
- end
end
# Take all the public instance methods from the Config singleton and allow
# them to be accessed through the Mongoid module directly.
#