I’m a RoR beginner and I’m trying to make a gem that can “intercepts” all action from my controllers.
I would like to do something like that:
class ApplicationController < ActionController::Base
class MyController < ApplicationController
In each call of index or other action from MyController, I want that MyGem execute “do_something_to” modifying the value of “some_attribute”. Is it possible?