How to override AR last method for one class

I have Calculations class. It’s mysql view.
I want to get last record by:

def self.last

It’s work for Calculations.last
But don’t for Calculations.prepayed.last with err:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs