Rails 4 support

As was told in #1  we need Rails 4 support. Fixed now.