Replace before_filter with before_action to use Rails 4 syntax