simple_record 1.1.23 → 1.1.24
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/README.markdown +1 -1
- data/lib/simple_record.rb +5 -5
- metadata +1 -1
data/README.markdown
CHANGED
@@ -19,7 +19,7 @@ ONE TIME: Be sure to add the new gemcutter source:
|
|
19
19
|
gem install gemcutter
|
20
20
|
gem tumble
|
21
21
|
|
22
|
-
THEN (you should have http://gemcutter.org in your sources and it MUST be above rubyforge.org):
|
22
|
+
THEN (you should have http://gemcutter.org in your sources and it MUST be above gems.rubyforge.org):
|
23
23
|
|
24
24
|
gem install simple_record
|
25
25
|
|
data/lib/simple_record.rb
CHANGED
@@ -83,7 +83,7 @@ module SimpleRecord
|
|
83
83
|
def initialize(attrs={})
|
84
84
|
# todo: Need to deal with objects passed in. iterate through belongs_to perhaps and if in attrs, set the objects id rather than the object itself
|
85
85
|
|
86
|
-
if params[0]
|
86
|
+
# if params[0]
|
87
87
|
#we have to handle the virtuals. Right now, this assumes that all parameters are passed from inside an array
|
88
88
|
#this is the usually the case when the parameters are passed passed via POST and obtained from the params array
|
89
89
|
@@virtuals.each do |virtual|
|
@@ -92,10 +92,10 @@ module SimpleRecord
|
|
92
92
|
#and then remove the parameter before it is passed to initialize, so that it is NOT sent to SimpleDB
|
93
93
|
eval("params[0].delete('#{virtual}')")
|
94
94
|
end
|
95
|
-
super(*params)
|
96
|
-
else
|
97
|
-
super
|
98
|
-
end
|
95
|
+
# super(*params)
|
96
|
+
# else
|
97
|
+
super
|
98
|
+
# end
|
99
99
|
@errors=SimpleRecord_errors.new
|
100
100
|
@dirty = {}
|
101
101
|
end
|