datts_right 0.0.28 → 0.0.29
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/datts_right.gemspec +1 -1
- data/lib/datts_right/instance_methods.rb +2 -2
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.29
|
data/datts_right.gemspec
CHANGED
@@ -182,9 +182,9 @@ module DattsRight
|
|
182
182
|
def update_definition(key, new_values={})
|
183
183
|
if dynamic_attributes_options[:definition]
|
184
184
|
if definition && definition[key]
|
185
|
-
attr_key = new_values
|
185
|
+
attr_key = new_values[:attr_key]
|
186
186
|
new_values.each do |k, v|
|
187
|
-
definition[key][k] = v
|
187
|
+
definition[key][k] = v unless k.to_sym == :attr_key
|
188
188
|
end
|
189
189
|
|
190
190
|
if attr_key
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datts_right
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 37
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 29
|
10
|
+
version: 0.0.29
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ramon Tayag
|