From bd84b820188daed991756531071137dc7e0876a0 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 17 Apr 2009 21:49:57 -0700 Subject: Eliminate Pathname extensions --- .../lib/active_support/core_ext/pathname/clean_within.rb | 10 ---------- 1 file changed, 10 deletions(-) delete mode 100644 activesupport/lib/active_support/core_ext/pathname/clean_within.rb (limited to 'activesupport/lib/active_support/core_ext/pathname') diff --git a/activesupport/lib/active_support/core_ext/pathname/clean_within.rb b/activesupport/lib/active_support/core_ext/pathname/clean_within.rb deleted file mode 100644 index 89690252b1..0000000000 --- a/activesupport/lib/active_support/core_ext/pathname/clean_within.rb +++ /dev/null @@ -1,10 +0,0 @@ -require 'pathname' - -class Pathname - # Clean the paths contained in the provided string. - def self.clean_within(string) - string.gsub(%r{[\w. ]+(/[\w. ]+)+(\.rb)?(\b|$)}) do |path| - new(path).cleanpath - end - end -end -- cgit v1.2.3