Change dependency to rails >= 3.0.

Support Rails 4. Fixes #2.