Skip to content

Idea for moving the average and probability methods

Lewis Jones edited this page Oct 19, 2015 · 1 revision

Create in classes as class methods in lib/assets.

then in controller for pets pass in the pet.

def dumps
  @pet = Pet.find blah
  @dump = Dump.find
  @average = Average.new(@pet, @dump).calculate
end

Clone this wiki locally