lib/timespan/mongoid.rb in timespan-0.4.1 vs lib/timespan/mongoid.rb in timespan-0.4.2

- old
+ new

@@ -1,6 +1,7 @@ require "timespan" require "mongoid/fields" +require "timespan/mongoid/timespanned" # http://whytheluckystiff.net/articles/seeingMetaclassesClearly.html class Object def meta_def name, &blk (class << self; self; end).instance_eval { define_method name, &blk } \ No newline at end of file