Skip to content

Commit

Permalink
do not use deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Jan 12, 2015
1 parent 0497684 commit fae22be
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions .rubocop.yml
Expand Up @@ -39,11 +39,6 @@ Metrics/PerceivedComplexity:
Style/AccessModifierIndentation:
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
Style/DeprecatedHashMethods:
Enabled: false

# Offense count: 85
Style/Documentation:
Enabled: false
Expand Down
2 changes: 1 addition & 1 deletion src/clients/inst_proposal.rb
Expand Up @@ -1137,7 +1137,7 @@ def submod_descriptions_and_build_menu

no2 = descr["no"] || 0
id = descr["id"] || Builtins.sformat("module_%1", no2)
if descr.has_key? "menu_titles"
if descr.key? "menu_titles"
descr["menu_titles"].each do |i|
id2 = i["id"]
title = i["title"]
Expand Down

0 comments on commit fae22be

Please sign in to comment.