added rails 4 compatibility

Just have removed hard dependency on rails 3.2.15