lib/quilt_rails/performance/report.rb in quilt_rails-1.12.0 vs lib/quilt_rails/performance/report.rb in quilt_rails-1.12.1
- old
+ new
@@ -7,10 +7,10 @@
attr_accessor :navigations
attr_accessor :connection
def self.from_params(params)
params.transform_keys! { |key| key.underscore.to_sym }
- params.require(:connection)
+ params[:connection] = { effectiveType: 'unknown' } if params[:connection].blank?
connection = Connection.from_params(params[:connection])
Report.new(
connection: connection,