fixturease 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/bin/fixturease.rb +7 -3
- metadata +2 -2
data/Rakefile
CHANGED
data/bin/fixturease.rb
CHANGED
@@ -75,7 +75,7 @@ else
|
|
75
75
|
@@fixtures[self.class] ||= {}
|
76
76
|
@@fixtures[self.class][self.id] = self unless self.new_record?
|
77
77
|
end
|
78
|
-
|
78
|
+
|
79
79
|
alias_method :to_yaml_orig, :to_yaml
|
80
80
|
def to_yaml
|
81
81
|
id || to_yaml_orig
|
@@ -85,7 +85,9 @@ else
|
|
85
85
|
@@fixtures
|
86
86
|
end
|
87
87
|
end
|
88
|
-
|
88
|
+
unless Rails::VERSION::STRING == "1.1.6"
|
89
|
+
ActiveRecord::Base.send :increment_open_transactions
|
90
|
+
end
|
89
91
|
ActiveRecord::Base.connection.begin_db_transaction
|
90
92
|
begin
|
91
93
|
load_fixtures! if ENV['LOAD_FIXTURES']=='yes'
|
@@ -116,6 +118,8 @@ else
|
|
116
118
|
puts "No new objects were created."
|
117
119
|
end
|
118
120
|
ActiveRecord::Base.connection.rollback_db_transaction
|
119
|
-
|
121
|
+
unless Rails::VERSION::STRING == "1.1.6"
|
122
|
+
ActiveRecord::Base.send :decrement_open_transactions
|
123
|
+
end
|
120
124
|
end
|
121
125
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: fixturease
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version:
|
7
|
-
date: 2007-02-
|
6
|
+
version: 0.3.1
|
7
|
+
date: 2007-02-16 00:00:00 +02:00
|
8
8
|
summary: Easy fixture creation tool
|
9
9
|
require_paths:
|
10
10
|
- lib
|