ar_after_transaction 0.2.0 → 0.2.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.
- data/VERSION +1 -1
- data/ar_after_transaction.gemspec +2 -2
- data/lib/ar_after_transaction.rb +2 -2
- data/spec/ar_after_transaction_spec.rb +5 -0
- metadata +4 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.2.
|
|
1
|
+
0.2.1
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
|
|
6
6
|
Gem::Specification.new do |s|
|
|
7
7
|
s.name = %q{ar_after_transaction}
|
|
8
|
-
s.version = "0.2.
|
|
8
|
+
s.version = "0.2.1"
|
|
9
9
|
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
11
11
|
s.authors = ["Michael Grosser"]
|
|
12
|
-
s.date = %q{2011-02-
|
|
12
|
+
s.date = %q{2011-02-18}
|
|
13
13
|
s.email = %q{michael@grosser.it}
|
|
14
14
|
s.files = [
|
|
15
15
|
"Gemfile",
|
data/lib/ar_after_transaction.rb
CHANGED
|
@@ -32,11 +32,11 @@ module ARAfterTransaction
|
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
def normally_open_transactions
|
|
35
|
-
|
|
35
|
+
@@normally_open_transactions ||= 0
|
|
36
36
|
end
|
|
37
37
|
|
|
38
38
|
def normally_open_transactions=(value)
|
|
39
|
-
|
|
39
|
+
@@normally_open_transactions = value
|
|
40
40
|
end
|
|
41
41
|
|
|
42
42
|
private
|
|
@@ -108,5 +108,10 @@ describe ARAfterTransaction do
|
|
|
108
108
|
User.normally_open_transactions = 5
|
|
109
109
|
User.normally_open_transactions.should == 5
|
|
110
110
|
end
|
|
111
|
+
|
|
112
|
+
it "sets them globally" do
|
|
113
|
+
User.normally_open_transactions = 5
|
|
114
|
+
ActiveRecord::Base.normally_open_transactions.should == 5
|
|
115
|
+
end
|
|
111
116
|
end
|
|
112
117
|
end
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ar_after_transaction
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 21
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 2
|
|
9
|
-
-
|
|
10
|
-
version: 0.2.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.2.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Michael Grosser
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-02-
|
|
18
|
+
date: 2011-02-18 00:00:00 +01:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|