Sha256: 4f21e33d76ad114e8ce6c6c70444cbc7c62ede3ae225b54e861aa83706727773

Contents?: true

Size: 224 Bytes

Versions: 16

Compression:

Stored size: 224 Bytes

Contents

class Version < ActiveRecord::Base
  include Comparable

  belongs_to :versioned, :polymorphic => true

  serialize :changes, Hash

  alias_attribute :version, :number

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

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
andoq-vestal_versions-0.6.1 lib/version.rb
laserlemon-vestal_versions-0.4.2 lib/version.rb
laserlemon-vestal_versions-0.4.3 lib/version.rb
laserlemon-vestal_versions-0.4.4 lib/version.rb
laserlemon-vestal_versions-0.4.5 lib/version.rb
laserlemon-vestal_versions-0.5.0 lib/version.rb
laserlemon-vestal_versions-0.6.0 lib/version.rb
laserlemon-vestal_versions-0.7.0 lib/version.rb
sthapit-vestal_versions-0.7.0 lib/version.rb
sthapit-vestal_versions-0.7.1 lib/version.rb
sthapit-vestal_versions-0.8.0 lib/version.rb
vestal_versions-0.7.0 lib/version.rb
vestal_versions-0.6.0 lib/version.rb
vestal_versions-0.5.0 lib/version.rb
vestal_versions-0.4.5 lib/version.rb
vestal_versions-0.4.4 lib/version.rb