Skip to content
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

fixes #3766 - change NAME_MAP to be a method #1067

Closed

Conversation

stbenjam
Copy link
Member

No description provided.

# returns a hash for all the Features like this:
# { 'tftp' => 'TFTP', 'puppetca' => 'Puppet CA' }
features = {}
Feature.all.collect.each do |feature|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

collect seems superfluous here

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed. I could just use the original code in the method anyway.

@domcleal
Copy link
Contributor

Thanks for the patch @stbenjam, merged as ba402a7 for Foreman 1.4.0.

@domcleal domcleal closed this Nov 28, 2013
@stbenjam stbenjam deleted the 3776-name_map_to_method branch May 14, 2014 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants