conjoin 0.0.74 → 0.0.75

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ac1bd100a392e577d20462a967b32d1dcab3234c
4
- data.tar.gz: b61aad7f94a36e154ac80cb7d5017e662b1fde78
3
+ metadata.gz: 26148ba1517c2a21152bc26a92b456579ef6958e
4
+ data.tar.gz: 7f102ff7ae9d76064424f0cd664bfea066bd325e
5
5
  SHA512:
6
- metadata.gz: f301a61eb6c03a66a0168ac5593b3d7a1197283706a06992a5be602d9911db712ab048d75120668049c89c813993cc457b8a9e7c252c5f9e70ec17917965bd29
7
- data.tar.gz: 06c1cc6c2471a3448740b54d20148a2a8d3942e2108b1215d3aee68a086635006ca4e0e600f81c49efae13dbed3de1484e7da36353ae06f70758e3fcc22642b1
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]
@@ -1,3 +1,3 @@
1
1
  module Conjoin
2
- VERSION = "0.0.74"
2
+ VERSION = "0.0.75"
3
3
  end
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.74
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-13 00:00:00.000000000 Z
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.2.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: