Project

General

Profile

« Previous | Next » 

Revision 9d43fc71

Added by Michael Moll almost 6 years ago

Fixes #19789 - fix Layout/SpaceAroundOperators cop

View differences:

app/controllers/facts_controller.rb
@fact = FactName.find(params[:id])
begin
data = {:name => CGI.escapeHTML(@fact.name),
:values => FactValue.count_each(@fact.name).to_a.each{|v| v[:label]=CGI.escapeHTML(v[:label])}}
:values => FactValue.count_each(@fact.name).to_a.each{|v| v[:label] = CGI.escapeHTML(v[:label])}}
rescue
data = @fact
end

Also available in: Unified diff