Skip to content

Commit

Permalink
Merge pull request #1658 from jrafanie/autoload_ui_constants_globally
Browse files Browse the repository at this point in the history
Autoload UiConstants so other repos don't need to do this
  • Loading branch information
martinpovolny authored Jul 7, 2017
2 parents d74c735 + e811738 commit d95587a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/manageiq/ui/classic/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ class Engine < ::Rails::Engine
)
end

config.after_initialize do
# HACK: Autoload UiConstants so other repos don't need to do this. This file pollutes the global namespace for legacy bad reasons.
UiConstants
end

def vmdb_plugin?
true
end
Expand Down

0 comments on commit d95587a

Please sign in to comment.