activerecord-draft_records 0.5.0 → 0.5.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 CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
@@ -23,11 +23,11 @@ module ActiveRecord
23
23
  # Attempt to create the record, if it fails, save it as a draft
24
24
  def create_or_draft(attributes = {}, options = {}, &block)
25
25
  if attributes.is_a?(Array)
26
- attributes.collect { |attr| create_as_draft(attr, &block) }
26
+ attributes.collect { |attr| create_or_draft(attr, &block) }
27
27
  else
28
28
  object = new(attributes)
29
29
  yield(object) if block_given?
30
- object.save_or_draft
30
+ object.save_or_draft(options)
31
31
  object
32
32
  end
33
33
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord-draft_records
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 0
10
- version: 0.5.0
9
+ - 1
10
+ version: 0.5.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rodrigo Kochenburger
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-12 00:00:00 -02:00
18
+ date: 2010-12-07 00:00:00 -02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency