diff options
author | Akira Matsuda <ronnie@dio.jp> | 2019-07-12 18:08:14 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2019-07-12 18:30:58 +0900 |
commit | 71a20b0e6d8c186e0f12aad4e5adf573f86cfe2e (patch) | |
tree | bacb8740f8b9ebe539609d416892c4c856224f6b /actionpack | |
parent | 84e21165a8fa379eaeeba5b64f42c002f6fee77f (diff) | |
download | rails-71a20b0e6d8c186e0f12aad4e5adf573f86cfe2e.tar.gz rails-71a20b0e6d8c186e0f12aad4e5adf573f86cfe2e.tar.bz2 rails-71a20b0e6d8c186e0f12aad4e5adf573f86cfe2e.zip |
try (Just a Little Bit Harder)
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/controller/resources_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/actionpack/test/controller/resources_test.rb b/actionpack/test/controller/resources_test.rb index 1e42a3a90d..339025ec52 100644 --- a/actionpack/test/controller/resources_test.rb +++ b/actionpack/test/controller/resources_test.rb @@ -1,7 +1,6 @@ # frozen_string_literal: true require "abstract_unit" -require "active_support/core_ext/object/try" require "active_support/core_ext/object/with_options" require "active_support/core_ext/array/extract_options" @@ -1249,7 +1248,7 @@ class ResourcesTest < ActionController::TestCase shallow_path = "/#{options[:shallow] ? options[:namespace] : options[:path_prefix]}#{path}" full_path = "/#{options[:path_prefix]}#{path}" name_prefix = options[:name_prefix] - shallow_prefix = options[:shallow] ? options[:namespace].try(:gsub, /\//, "_") : options[:name_prefix] + shallow_prefix = options[:shallow] ? options[:namespace]&.gsub(/\//, "_") : options[:name_prefix] new_action = "new" edit_action = "edit" |