File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -161,13 +161,13 @@ def self.expose(*args, &block)
161
161
args . each do |attribute |
162
162
unless @nested_attributes . empty?
163
163
orig_attribute = attribute . to_sym
164
- attribute = "#{ @nested_attributes . last } __#{ attribute } "
165
- nested_attribute_names [ attribute . to_sym ] = orig_attribute
164
+ attribute = "#{ @nested_attributes . last } __#{ attribute } " . to_sym
165
+ nested_attribute_names [ attribute ] = orig_attribute
166
166
options [ :nested ] = true
167
- nested_exposures . deep_merge! ( @nested_attributes . last . to_sym => { attribute . to_sym => options } )
167
+ nested_exposures . deep_merge! ( @nested_attributes . last . to_sym => { attribute => options } )
168
168
end
169
169
170
- exposures [ attribute . to_sym ] = options
170
+ exposures [ attribute ] = options
171
171
172
172
# Nested exposures are given in a block with no parameters.
173
173
if block_given? && block . parameters . empty?
You can’t perform that action at this time.
0 commit comments