Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
getfitter-core / app / models / core / pass_purchase.rb
Size: Mime:
module Core
  class PassPurchase < ActiveRecord::Base
    belongs_to :pass
    belongs_to :user

    validates :purchased_date, presence: true

    def expires
      purchased_date.advance(days: pass.duration)
    end
  end
end