support rails 4.0
Merge pull request #3 from znz/support-rails-4

support rails 4.0