How to use 'before_action' in a module
I think this is what you're trying to do:
class SomeController < ActionController::Base include SimpleControllerend module SimpleController extend ActiveSupport::Concern included do before_action :set_object, only: [:show] endend