Merge pull request #6 from dorner/master

Compatibility with Rails 4
Use the new AR methods in both Rails 3 and 4
v0.6.3 - rails 4 compatibility