Allow rails 4.

Includes #16.