-
Notifications
You must be signed in to change notification settings - Fork 366
TreeBuilder* - remove dead id_prefix #684
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| def set_locals_for_render | ||
| locals = super | ||
| locals.merge!(:id_prefix => 'nt_', :autoload => true) | ||
| locals.merge!(:autoload => true) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe the simpler code below is better:
locals = super
locals[:autoload] = true
locals # if caller is expecting the hash to be returnedThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed :)
I'll probably do a separate PR to unify all the various ways this function is written to something that just returns a hash..
|
@himdel as far as i remember we had a BZ for a tree where this |
Used to be used before ManageIQ/manageiq#10767, dead since then.
|
Checked commit https://github.com/himdel/manageiq-ui-classic/commit/167be8982bb303ebfb716fc81993b89674ba4bf9 with ruby 2.2.6, rubocop 0.47.1, and haml-lint 0.20.0 |
|
@skateman hard to believe since this never gets used in JS :) any chance you can find the BZ? (and yeah, it can wait since you're on PTO :)) |
skateman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was probably #218 but it's a bit different than I remember, so it's good to merge!

id_prefixin treebuilders used to be used before ManageIQ/manageiq#10767, but has been dead since then, removing.(Removed in https://github.com/ManageIQ/manageiq/pull/10767/files#diff-68c04f575f602a2ea2b246518f9b0acdL6 and https://github.com/ManageIQ/manageiq/pull/10767/files#diff-e4bb0ff2bbc5a334b211e9b8684210e0L231)
Cc @skateman