compatible for rails 3 and 4
Merge pull request #3 from masarakki/multi_version_rails

for rails 3 and 4