Skip to content

Instantly share code, notes, and snippets.

@tenderlove
Created June 18, 2015 16:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tenderlove/ae48b2fc0641a5bc49a1 to your computer and use it in GitHub Desktop.
Save tenderlove/ae48b2fc0641a5bc49a1 to your computer and use it in GitHub Desktop.
diff --git a/vmdb/app/models/miq_report_result.rb b/vmdb/app/models/miq_report_result.rb
index 9d3e1c1..06dc3a2 100644
--- a/vmdb/app/models/miq_report_result.rb
+++ b/vmdb/app/models/miq_report_result.rb
@@ -108,7 +108,7 @@ class MiqReportResult < ActiveRecord::Base
# => See line 8 of vendor/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/quoting.rb -
# => "records are quoted as their primary key"
def report
- val = read_attribute(:report)
+ val = super
val.nil? ? nil : val.first
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment