I would like to use \'before_action\' in a module.
Unfortunately, I couldn\'t get it work.
I was googleing, but everything I found couldn\'t solve the problem.>
I think this is what you're trying to do:
class SomeController < ActionController::Base include SimpleController end module SimpleController extend ActiveSupport::Concern included do before_action :set_object, only: [:show] end end