I have defined method in ApplicationController
class ApplicationController < ActionController::Base helper_method :get_active_gateway def get_active
As a design choice, its not recommended to call controller helpers from your models.
You can just simply pass the required details to your model methods as arguments.
def transfer(active_gateway) active = active_gateway end