Skip to content

Commit

Permalink
Refactor with rubocop: gsub => delete
Browse files Browse the repository at this point in the history
  • Loading branch information
YOSHIDA Hiroki committed Aug 17, 2015
1 parent faeba03 commit 08e7263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/helpers/comable/admin/navigations_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def add_fields_button_tag(name, f, association)
fields = f.fields_for(association, new_object, child_index: index) do |builder|
render(association.to_s.singularize + '_fields', f: builder)
end
button_tag(name, type: :button, class: 'add_fields btn btn-default pull-right', data: { index: index, fields: fields.gsub("\n", '') })
button_tag(name, type: :button, class: 'add_fields btn btn-default pull-right', data: { index: index, fields: fields.delete("\n") })
end
end
end
Expand Down

0 comments on commit 08e7263

Please sign in to comment.