sets rails >= 3.1
Merge pull request #22 from lucasrenan/rails4

rails 4 compatibility