Skip to content

Conversation

@himdel
Copy link
Contributor

@himdel himdel commented Mar 14, 2017

def set_locals_for_render
locals = super
locals.merge!(:id_prefix => 'nt_', :autoload => true)
locals.merge!(:autoload => true)
Copy link
Member

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 returned

Copy link
Contributor Author

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..

@skateman
Copy link
Member

@himdel as far as i remember we had a BZ for a tree where this id_prefix was necessary even after the conversion...

@martinpovolny
Copy link
Member

@skateman : please, work with @himdel and verify your claim

Thx ;-)

Used to be used before ManageIQ/manageiq#10767, dead since then.
@miq-bot
Copy link
Member

miq-bot commented Mar 27, 2017

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
10 files checked, 0 offenses detected
Everything looks good. 👍

@himdel
Copy link
Contributor Author

himdel commented Mar 27, 2017

@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 :))

Copy link
Member

@skateman skateman left a 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!

@martinpovolny martinpovolny merged commit 1d7ed5f into ManageIQ:master Mar 30, 2017
@himdel himdel deleted the id-prefix branch March 30, 2017 14:40
@chessbyte chessbyte added this to the Sprint 58 Ending Apr 10, 2017 milestone Oct 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants