simple_record 1.1.23 → 1.1.24

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.markdown +1 -1
  2. data/lib/simple_record.rb +5 -5
  3. 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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.23
4
+ version: 1.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder