How can an inherited controller add to parent's before_action conditions

Viewed 2841
class ParentController < ApplicationController
  before_action admin_user, only: [:create, :update]
end

class ChildController < ParentController
  before_action admin_user #Also want to add :tweet

  def tweet
  end
end

In the ChildController we could use

before_action admin_user, only: [:create, :update, :tweet]

but then if I change anything in the parent's before_action, it won't get updated in the child.

2 Answers
Related