From 86c9a35bc303287194a8957b931d80177265ef12 Mon Sep 17 00:00:00 2001 From: Martin Hradil Date: Tue, 28 Feb 2017 13:12:57 +0000 Subject: [PATCH] ApplicationRecord - temporarily add .decorate and self.decorate This is UI code that should live in the UI, but that requires a few more steps first. In the mean time, we either have to keep patching ApplicationRecord and deal with the autoloader, or just add it to ApplicationRecord directly. --- app/models/application_record.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/models/application_record.rb b/app/models/application_record.rb index 37a07ba2a1b..bdf5c751166 100644 --- a/app/models/application_record.rb +++ b/app/models/application_record.rb @@ -9,4 +9,8 @@ class ApplicationRecord < ActiveRecord::Base include ToModelHash extend ArTableLock + + # FIXME: UI code - decorator support + extend MiqDecorator::Klass + include MiqDecorator::Instance end