conjoin 0.0.74 → 0.0.75
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/conjoin/active_record.rb +2 -2
- data/lib/conjoin/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: 26148ba1517c2a21152bc26a92b456579ef6958e
|
4
|
+
data.tar.gz: 7f102ff7ae9d76064424f0cd664bfea066bd325e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 674bac56bfdd33574e79c1617d8d3b813f36eb0e61f9075a32269faac78523bf55c9e23c17de301a0edaabfc665ec0cb096291e8c13eb9e6049d84b2a878f9f0
|
7
|
+
data.tar.gz: fffa8010f1b62036e20525463739bda5fcb9b7c5b3c813fb4da587c84cb9fbabdc93391584ea0e165ee2914915338fd44fbc6b00d591ff249e0d439b1d92cc11
|
@@ -135,12 +135,12 @@ module Conjoin
|
|
135
135
|
associated_model = model.try associated_name
|
136
136
|
|
137
137
|
if associated_model.kind_of? ::ActiveRecord::Base
|
138
|
-
new_current_params = current_params[name]
|
138
|
+
new_current_params = (current_params[name.to_sym] || current_params[name])
|
139
139
|
if new_current_params.kind_of? Hash
|
140
140
|
add_creator_and_updater_for associated_model, current_user, new_current_params
|
141
141
|
end
|
142
142
|
elsif associated_model.kind_of? ActiveRecord::Associations::CollectionProxy
|
143
|
-
new_current_params = current_params[name]
|
143
|
+
new_current_params = (current_params[name.to_sym] || current_params[name])
|
144
144
|
associated_model.each_with_index do |current_model, i|
|
145
145
|
new_current_params ||= []
|
146
146
|
add_creator_and_updater_for current_model, current_user, new_current_params[i]
|
data/lib/conjoin/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: conjoin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.75
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cj
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cuba
|
@@ -542,8 +542,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
542
542
|
version: '0'
|
543
543
|
requirements: []
|
544
544
|
rubyforge_project:
|
545
|
-
rubygems_version: 2.
|
545
|
+
rubygems_version: 2.3.0
|
546
546
|
signing_key:
|
547
547
|
specification_version: 4
|
548
548
|
summary: Adds certain things to Cuba to make it more familiar to rails devs
|
549
549
|
test_files: []
|
550
|
+
has_rdoc:
|