Sha256: d1f213efb1613b1f2231bd2ceb46b36d7332a76fcab6aa005519ef157a0e8129

Contents?: true

Size: 248 Bytes

Versions: 7

Compression:

Stored size: 248 Bytes

Contents

class Version < ActiveRecord::Base
  include Comparable

  belongs_to :versioned, :polymorphic => true

  undef_method :changes
  serialize :changes, Hash

  alias_attribute :version, :number

  def <=>(other)
    number <=> other.number
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
laserlemon-vestal_versions-0.7.1 lib/version.rb
laserlemon-vestal_versions-0.8.0 lib/version.rb
vestal_versions-0.8.3 lib/version.rb
vestal_versions-0.8.1 lib/version.rb
vestal_versions-0.8.2 lib/version.rb
vestal_versions-0.8.0 lib/version.rb
vestal_versions-0.7.1 lib/version.rb