Fix Rails < 4.0 compatability

Just use before_filter, no before_action