- module ActiveRecord
- class Base
- class << self
- def me
- where(:email => `git config user.email`.chomp).first
- end
- end
- end
- end if defined? ActiveRecord
- module Mongoid
- module Document
- module ClassMethods
- def me
- where(:email => `git config user.email`.chomp).first
- end
- end
- end
- end if defined? Mongoid