Permalink
Browse files

Remove unneeded requires

We should not require all the core extensions inside the frameworks.
The logger is already defined in the Action View framework.
  • Loading branch information...
1 parent 91183ba commit a227359c6289613c870c8bb1481754ab00325c12 @rafaelfranca rafaelfranca committed Sep 5, 2012
Showing with 3 additions and 7 deletions.
  1. +3 −7 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 @@ def nested_dependencies
def logical_name
name.gsub(%r|/_|, "/")
end
-
+
def directory
name.split("/").first
end
@@ -74,7 +71,6 @@ def source
@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 @@ def render_dependencies
# 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 @@ def explicit_dependencies
source.scan(EXPLICIT_DEPENDENCY).flatten.uniq
end
end
-end
+end

0 comments on commit a227359

Please sign in to comment.