Skip to content

Commit

Permalink
Permanently deleted app/helpers/ui_constants.rb ... end of issue #1661
Browse files Browse the repository at this point in the history
  • Loading branch information
europ committed Sep 12, 2017
1 parent 01005a0 commit f3aaf08
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 17 deletions.
5 changes: 0 additions & 5 deletions app/helpers/ui_constants.rb

This file was deleted.

5 changes: 0 additions & 5 deletions lib/manageiq/ui/classic/engine.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,6 @@ 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
5 changes: 0 additions & 5 deletions lib/report_formatter.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# Make these constants globally available
# TODO: Stop including constants in Object via UiConstants module since these
# singleton constants don't play nice with Rails class reloading in dev mode.
# Either access the constants through the UiConstants namespace or get it to
# work with including it in all the views/controllers via application_helper.
include ActionView::Helpers::NumberHelper

require 'report_formatter/report_renderer'
Expand Down
2 changes: 0 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,9 @@

config.include Spec::Support::AuthHelper, :type => :view
config.include Spec::Support::ViewHelper, :type => :view
config.include UiConstants, :type => :view

config.include Spec::Support::ControllerHelper, :type => :controller
config.include Spec::Support::AuthHelper, :type => :controller
config.include UiConstants, :type => :controller

config.include Spec::Support::AuthHelper, :type => :helper

Expand Down

0 comments on commit f3aaf08

Please sign in to comment.