diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-17 21:49:57 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-04-17 21:49:57 -0700 |
commit | bd84b820188daed991756531071137dc7e0876a0 (patch) | |
tree | 6bac8cec645f8940e792f2e83e2ba916d51234da /activesupport/lib/active_support/core_ext/pathname | |
parent | 727e9dc18a7059f024b922b65951198ff0184fdd (diff) | |
download | rails-bd84b820188daed991756531071137dc7e0876a0.tar.gz rails-bd84b820188daed991756531071137dc7e0876a0.tar.bz2 rails-bd84b820188daed991756531071137dc7e0876a0.zip |
Eliminate Pathname extensions
Diffstat (limited to 'activesupport/lib/active_support/core_ext/pathname')
-rw-r--r-- | activesupport/lib/active_support/core_ext/pathname/clean_within.rb | 10 |
1 files changed, 0 insertions, 10 deletions
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 |