Created
June 18, 2015 16:21
-
-
Save tenderlove/ae48b2fc0641a5bc49a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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