aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/string/behavior.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport/lib/active_support/core_ext/string/behavior.rb')
-rw-r--r--activesupport/lib/active_support/core_ext/string/behavior.rb18
1 files changed, 6 insertions, 12 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/behavior.rb b/activesupport/lib/active_support/core_ext/string/behavior.rb
index a93ca3027f..9d45fbca45 100644
--- a/activesupport/lib/active_support/core_ext/string/behavior.rb
+++ b/activesupport/lib/active_support/core_ext/string/behavior.rb
@@ -1,13 +1,7 @@
-module ActiveSupport #:nodoc:
- module CoreExtensions #:nodoc:
- module String #:nodoc:
- module Behavior
- # Enable more predictable duck-typing on String-like classes. See
- # Object#acts_like?.
- def acts_like_string?
- true
- end
- end
- end
+class String
+ # Enable more predictable duck-typing on String-like classes. See
+ # Object#acts_like?.
+ def acts_like_string?
+ true
end
-end \ No newline at end of file
+end