I have Calculations class. It’s mysql view.
I want to get last record by:
def self.last
order(:custom_field).limit(1)
end
It’s work for Calculations.last
But don’t for Calculations.prepayed.last with err:
I have Calculations class. It’s mysql view.
I want to get last record by:
def self.last
order(:custom_field).limit(1)
end
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.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs