saucy 0.3.4 → 0.3.4.1

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.
@@ -1,7 +1,7 @@
1
1
  class Membership < ActiveRecord::Base
2
2
  belongs_to :user
3
3
  belongs_to :account
4
- has_many :permissions
4
+ has_many :permissions, :dependent => :destroy
5
5
  has_many :projects, :through => :permissions
6
6
 
7
7
  validates_presence_of :user_id
@@ -5,7 +5,7 @@ describe Membership do
5
5
  it { should belong_to(:user) }
6
6
  it { should validate_presence_of(:account_id) }
7
7
  it { should validate_presence_of(:user_id) }
8
- it { should have_many(:permissions) }
8
+ it { should have_many(:permissions).dependent(:destroy) }
9
9
  it { should have_many(:projects).through(:permissions) }
10
10
 
11
11
  describe "given an existing account membership" do
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saucy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 69
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
9
  - 4
10
- version: 0.3.4
10
+ - 1
11
+ version: 0.3.4.1
11
12
  platform: ruby
12
13
  authors:
13
14
  - thoughtbot, inc.
@@ -18,7 +19,7 @@ autorequire:
18
19
  bindir: bin
19
20
  cert_chain: []
20
21
 
21
- date: 2011-03-24 00:00:00 -04:00
22
+ date: 2011-03-31 00:00:00 -04:00
22
23
  default_executable:
23
24
  dependencies:
24
25
  - !ruby/object:Gem::Dependency