attribute accessor was moved to module directory in 4.1
make sure rails gem is loaded prior to requiring attribute_accesors