changed from metaclass to singleton_class to compatibility with newer rails versions
changed from metaclass to singleton_class to compatibility with newer rails versions

wilkerlucio/dragonfly_mongoid_extensions