Class: Rabl::Digestor

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

Class Method Summary collapse

Class Method Details

.digest(name, format, finder, options = {}) ⇒ Object

Override the original digest function to ignore partial which rabl doesn’t use the Rails conventional _ symbol.



5
6
7
8
9
10
# File 'lib/rabl/digestor.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