Change before_action to before_filter to support both Rails 3/4