lib/em-mongo/conversions.rb in em-mongo-0.3.6 vs lib/em-mongo/conversions.rb in em-mongo-0.4.0
- old
+ new
@@ -13,11 +13,11 @@
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# ++
-module Mongo #:nodoc:
+module EM::Mongo #:nodoc:
# Utility module to include when needing to convert certain types of
# objects to mongo-friendly parameters.
module Conversions
@@ -80,10 +80,10 @@
val = value.to_s.downcase
return 1 if ASCENDING_CONVERSION.include?(val)
return -1 if DESCENDING_CONVERSION.include?(val)
raise InvalidSortValueError.new(
"#{self} was supplied as a sort direction when acceptable values are: " +
- "Mongo::ASCENDING, 'ascending', 'asc', :ascending, :asc, 1, Mongo::DESCENDING, " +
+ "EM::Mongo::ASCENDING, 'ascending', 'asc', :ascending, :asc, 1, EM::Mongo::DESCENDING, " +
"'descending', 'desc', :descending, :desc, -1.")
end
end
end