use before_action instead of before_filter

rails 4 changed before_filter to [before_action](http://guides.rubyonrails.org/action_controller_overview.html#filters)