Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (11 sloc) 0.369 kb
class VersionHistory < ActiveRecord::Base
belongs_to :version
def self.for(version, day)
VersionHistory.where(:version_id => version.id, :day => day).first
end
def self.make(version, day, count)
VersionHistory.create(:version_id => version.id,
:day => day.to_s,
:count => count.to_i).save
end
end
Jump to Line
Something went wrong with that request. Please try again.