ratnikov-shoulda 2.0.6.1 → 2.0.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ module Pets
2
+ class Dog < ActiveRecord::Base
3
+ belongs_to :user, :foreign_key => :owner_id
4
+ belongs_to :address, :dependent => :destroy
5
+ has_many :treats
6
+ has_and_belongs_to_many :fleas, :join_table => :fleas
7
+ validates_presence_of :treats, :fleas
8
+ validates_presence_of :owner_id
9
+ end
10
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ratnikov-shoulda
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6.1
4
+ version: 2.0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tammer Saleh
@@ -87,7 +87,7 @@ files:
87
87
  - test/rails_root/app/helpers/users_helper.rb
88
88
  - test/rails_root/app/models
89
89
  - test/rails_root/app/models/address.rb
90
- - test/rails_root/app/models/dog.rb
90
+ - test/rails_root/app/models/pets/dog.rb
91
91
  - test/rails_root/app/models/flea.rb
92
92
  - test/rails_root/app/models/friendship.rb
93
93
  - test/rails_root/app/models/post.rb