Class: Rabl::Digestor

Inherits:
ActionView::Digestor
  • Object
show all
Defined in:
lib/rabl/digestor.rb,
lib/rabl/digestor/rails3.rb,
lib/rabl/digestor/rails5.rb,
lib/rabl/digestor/rails41.rb

Class Method Summary collapse

Class Method Details

.digest(options = {}) ⇒ Object



5
6
7
8
9
10
# File 'lib/rabl/digestor/rails3.rb', line 5

def self.digest(name, format, finder, options = {})
  cache_key = [name, format] + Array.wrap(options[:dependencies])
  @@cache[cache_key.join('.')] ||= begin
    Digestor.new(name, format, finder, options).digest
  end
end