activerecord 4.1 support

support for activerecord 4.1 added