security warning fix for 2.0

Fixes #39
updates for rails 4

From #39