Fix Rails < 4.0 compatability

Just use before_filter, no before_action
Merge pull request #3 from cpuguy83/patch-1

Fix Rails < 4.0 compatibility