now rails 3.2.12 compatible

Updated files to make it rails 3.2.12 compatible. All tests passes without errors ;-).