aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-09-05 11:05:50 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-09-05 11:07:25 -0300
commita227359c6289613c870c8bb1481754ab00325c12 (patch)
treec531a953e337e4aded3eaf5473b7c154f8cd5ba0 /actionpack/lib
parent91183baa6d54428da7ea466f0a854de2e631dd64 (diff)
downloadrails-a227359c6289613c870c8bb1481754ab00325c12.tar.gz
rails-a227359c6289613c870c8bb1481754ab00325c12.tar.bz2
rails-a227359c6289613c870c8bb1481754ab00325c12.zip
Remove unneeded requires
We should not require all the core extensions inside the frameworks. The logger is already defined in the Action View framework.
Diffstat (limited to 'actionpack/lib')
-rw-r--r--actionpack/lib/action_view/digestor.rb10
1 files changed, 3 insertions, 7 deletions
diff --git a/actionpack/lib/action_view/digestor.rb b/actionpack/lib/action_view/digestor.rb
index 2d7ba856d5..36bdb706b3 100644
--- a/actionpack/lib/action_view/digestor.rb
+++ b/actionpack/lib/action_view/digestor.rb
@@ -1,6 +1,3 @@
-require 'active_support/core_ext'
-require 'logger'
-
module ActionView
class Digestor
EXPLICIT_DEPENDENCY = /# Template Dependency: ([^ ]+)/
@@ -61,7 +58,7 @@ module ActionView
def logical_name
name.gsub(%r|/_|, "/")
end
-
+
def directory
name.split("/").first
end
@@ -74,7 +71,6 @@ module ActionView
@source ||= finder.find(logical_name, [], partial?, formats: [ format ]).source
end
-
def dependency_digest
dependencies.collect do |template_name|
Digestor.digest(template_name, format, finder, partial: true)
@@ -92,7 +88,7 @@ module ActionView
# render("headline") => render("message/headline")
collect { |name| name.include?("/") ? name : "#{directory}/#{name}" }.
-
+
# replace quotes from string renders
collect { |name| name.gsub(/["']/, "") }
end
@@ -101,4 +97,4 @@ module ActionView
source.scan(EXPLICIT_DEPENDENCY).flatten.uniq
end
end
-end \ No newline at end of file
+end