I want to alias a class method on one of my Rails models.
def self.sub_agent id = SubAgentStatus.where(name: \"active\").first.id where(type: \"SubAg
You can use:
class Foo def instance_method end alias_method :alias_for_instance_method, :instance_method def self.class_method end class <
OR Try:
self.singleton_class.send(:alias_method, :new_name, :original_name)