active_merge 1.0.1 → 1.0.2
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.
- checksums.yaml +4 -4
- data/README.rdoc +3 -3
- data/lib/active_merge/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ffd8cbe38f034bf9550b6bb0af0f14eedc1827d
|
4
|
+
data.tar.gz: 45cea92968add273f05457ab8d215540810708df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc5e47d45c307b9af261302b59d7ac6b6d0a827aa9182db622a787f7d72f7193f0eb5c8f10f85f0f46a3e0ab9f6c6ee9a050dee9c02c716fd9ca0055af6257a8
|
7
|
+
data.tar.gz: 0cd679bc248986bff5290e37f08f434edf840073f188dd4984f18067d712e1a36af45b1032754d25a0084915cb5c7fa25bdb6d634d9747e1838c6072080271d1
|
data/README.rdoc
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
Declares the <tt>ActiveMerge</tt> module for extending ActiveRecord models.
|
4
4
|
|
5
|
-
The module contains the <tt>
|
6
|
-
into the first one.
|
5
|
+
The module contains the <tt>merge_all</tt> class method for merging
|
6
|
+
class instances into the first one.
|
7
7
|
|
8
8
|
When merging a list of instances:
|
9
9
|
* all "has_many" relatives are reattached to the instance with the lowest id
|
@@ -16,7 +16,7 @@ When merging a list of instances:
|
|
16
16
|
has_many :comments
|
17
17
|
end
|
18
18
|
|
19
|
-
Post.all.
|
19
|
+
Post.all.merge_all
|
20
20
|
# This will merge all the posts into the first one.
|
21
21
|
# The other posts will be deleted after their comment are reattached
|
22
22
|
# to the first post.
|
data/lib/active_merge/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_merge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kozin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -80,7 +80,8 @@ dependencies:
|
|
80
80
|
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
|
-
description: Declares the ActiveMerge module with the '
|
83
|
+
description: Declares the ActiveMerge module with the 'merge_all' helper method and
|
84
|
+
Service object classes.
|
84
85
|
email:
|
85
86
|
- andrew.kozin@gmail.com
|
86
87
|
executables: []
|