diff options
Diffstat (limited to 'tasks')
-rwxr-xr-x | tasks/docs.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tasks/docs.rb b/tasks/docs.rb index 2fd92cc40e..a7743ff219 100755 --- a/tasks/docs.rb +++ b/tasks/docs.rb @@ -133,7 +133,7 @@ namespace :docs_site do # @return [Hash] # def action_list(actions, default_action) - actions = actions.map { |k, v| [k.to_sym, { "markdown" => k == default_action.first ? "#{v} (default)" : v } ] }.to_h + actions = actions.to_h { |k, v| [k.to_sym, { "markdown" => k == default_action.first ? "#{v} (default)" : v } ] } actions[:nothing] = { "shortcode" => "resources_common_actions_nothing.md" } actions end |