Sha256: 626eb2f602c84e0cce0948e6e96da8eb65f606418a74f0c0f8fa69b0101a6f30

Contents?: true

Size: 357 Bytes

Versions: 2

Compression:

Stored size: 357 Bytes

Contents

class User < ActiveRecord::Base
  versioned

  def name
    [first_name, last_name].compact.join(' ')
  end

  def name= names
    self[:first_name], self[:last_name] = names.split(' ', 2)
  end
end

class DeletedUser < ActiveRecord::Base
  set_table_name 'users'
  versioned :dependent => :tracking
end

class MyCustomVersion < VestalVersions::Version
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
set_vestal_versions-1.2.2 spec/support/models.rb
razenha-vestal_versions-1.2.2 spec/support/models.rb