diff options
Diffstat (limited to 'actionview/lib/action_view/tasks/dependencies.rake')
-rw-r--r-- | actionview/lib/action_view/tasks/dependencies.rake | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/actionview/lib/action_view/tasks/dependencies.rake b/actionview/lib/action_view/tasks/dependencies.rake deleted file mode 100644 index 9932ff8b6d..0000000000 --- a/actionview/lib/action_view/tasks/dependencies.rake +++ /dev/null @@ -1,23 +0,0 @@ -namespace :cache_digests do - desc 'Lookup nested dependencies for TEMPLATE (like messages/show or comments/_comment.html)' - task :nested_dependencies => :environment do - abort 'You must provide TEMPLATE for the task to run' unless ENV['TEMPLATE'].present? - puts JSON.pretty_generate ActionView::Digestor.new(CacheDigests.template_name, CacheDigests.finder).nested_dependencies - end - - desc 'Lookup first-level dependencies for TEMPLATE (like messages/show or comments/_comment.html)' - task :dependencies => :environment do - abort 'You must provide TEMPLATE for the task to run' unless ENV['TEMPLATE'].present? - puts JSON.pretty_generate ActionView::Digestor.new(CacheDigests.template_name, CacheDigests.finder).dependencies - end - - class CacheDigests - def self.template_name - ENV['TEMPLATE'].split('.', 2).first - end - - def self.finder - ApplicationController.new.lookup_context - end - end -end |