Sha256: b30d93f02d668fa212775b80d9d0117b7fb1b1802126941d733054e6471263c7

Contents?: true

Size: 236 Bytes

Versions: 5

Compression:

Stored size: 236 Bytes

Contents

class Team < ActiveRecord::Base
  has_many :players
  validates_presence_of :name

  act_as_releasable :collections => [:players]
end

class Player < ActiveRecord::Base
  belongs_to :team
  validates_presence_of :name, :skill_level
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
act_as_releasable-0.0.5 spec/support/models.rb
act_as_releasable-0.0.4 spec/support/models.rb
act_as_releasable-0.0.3 spec/support/models.rb
act_as_releasable-0.0.2 spec/support/models.rb
act_as_releasable-0.0.1 spec/support/models.rb