Sha256: a400cf2862782d4f01ce2dd28a671ae6f28c51e10db9fd72599cf01747a3e252

Contents?: true

Size: 132 Bytes

Versions: 10

Compression:

Stored size: 132 Bytes

Contents

module Koudoku::Plan
  extend ActiveSupport::Concern

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

end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
koudoku-2.0.0 app/concerns/koudoku/plan.rb
koudoku-1.2.4 app/concerns/koudoku/plan.rb
koudoku-1.2.3 app/concerns/koudoku/plan.rb
koudoku-1.2.2 app/concerns/koudoku/plan.rb
koudoku-1.2.1 app/concerns/koudoku/plan.rb
koudoku-1.2.0 app/concerns/koudoku/plan.rb
koudoku-1.1.2 app/concerns/koudoku/plan.rb
koudoku-1.1.1 app/concerns/koudoku/plan.rb
koudoku-1.1.0 app/concerns/koudoku/plan.rb
koudoku-1.0.0 app/concerns/koudoku/plan.rb