Sha256: 5d8b85e99f4f1cd9087d9b6dd7f79fbba42ed39020fbd51201dd43f26e720198

Contents?: true

Size: 264 Bytes

Versions: 1

Compression:

Stored size: 264 Bytes

Contents

module Koudoku::Plan
  extend ActiveSupport::Concern

  # Todo: fix the unit tests so that the association can be defined here
  #
  # included do
  #   has_many :subscriptions
  # end

  def is_upgrade_from?(plan)
    (price || 0) >= (plan.price || 0)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thumbjive-koudoku-1.5.0 app/concerns/koudoku/plan.rb