source_ids 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/source_ids/version.rb +1 -1
- data/lib/source_ids.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09032424ae9423bdbdefb4530ecacb06b9831023
|
4
|
+
data.tar.gz: 765ea427f113ef3d3027fb1f916b984750d3499d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db9174981c81c68f94008e77cf3159fa3d7e029f1cf2815a82e31bb9011e7e21cc9cd537adf5c57c1769e4dc1b74215c9eda7bf5a76d919706ce95f063101b89
|
7
|
+
data.tar.gz: 6ddbdaa7e326fd088afcc57166a32d871b946c675c09400aef798f26480c863ff68308b7f35bef77a0381114b179b073151847d40daa6b23ce1110d8e78631c7
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# SourceIds
|
2
2
|
|
3
|
-
SourceIds enables indirect association replacement via _source_ids=.
|
3
|
+
SourceIds enables indirect association replacement via \_source_ids=.
|
4
4
|
This feature is only for has_many :through associations.
|
5
5
|
|
6
6
|
## Installation
|
@@ -28,16 +28,16 @@ You can use group.user_ids= to replace users and save them in Rails.
|
|
28
28
|
|
29
29
|
But you can't just change your association objects without saving them.
|
30
30
|
|
31
|
-
This gem make it possible with group
|
31
|
+
This gem make it possible with group.\_user_ids=.
|
32
32
|
|
33
|
-
To enable _user_ids=, add like this.
|
33
|
+
To enable \_user_ids=, add like this.
|
34
34
|
|
35
35
|
accepts_source_ids_for :users
|
36
36
|
|
37
37
|
This also add following methods.
|
38
38
|
|
39
|
-
* _user_ids - returns active (not marked for destruction) records' ids.
|
40
|
-
* _users - return source records via relation objects (relation objects may be changed but not saved yet).
|
39
|
+
* \_user_ids - returns active (not marked for destruction) records' ids.
|
40
|
+
* \_users - return source records via relation objects (relation objects may be changed but not saved yet).
|
41
41
|
|
42
42
|
## Contributing
|
43
43
|
|
data/lib/source_ids/version.rb
CHANGED
data/lib/source_ids.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: source_ids
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nay3
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|