lib/mongoid/dynamic_finder.rb in mongoid-0.9.4 vs lib/mongoid/dynamic_finder.rb in mongoid-0.9.5
- old
+ new
@@ -1,4 +1,5 @@
+# encoding: utf-8
module Mongoid #:nodoc:
class DynamicFinder
# Regex for standard dynamic finder methods.
FINDER = /^find_(all_by|last_by|by)_([_a-zA-Z]\w*)$/
# Regex for finder methods that create objects if nothing found.