class Rabl::Digestor

Public Class Methods

digest(name, format, finder, options = {}) click to toggle source

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

# 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