Metoda uruchamiania przed szynami

before_action :run_method, only: [index, :show]
Doubtful Dingo