Fix compatibility with Rails < 3.2
Merge pull request #30 from ixti/fix/older-rails-compatibility

Fix compatibility with Rails < 3.2