allow rails 4 to work

Signed-off-by: Gordon B. Isnor <gordonbisnor@gmail.com>