Class: Rabl::Digestor
- Inherits:
-
ActionView::Digestor
- Object
- ActionView::Digestor
- Rabl::Digestor
- Defined in:
- lib/rabl/digestor.rb
Class Method Summary collapse
-
.digest(name, format, finder, options = {}) ⇒ Object
Override the original digest function to ignore partial which rabl doesn’t use the Rails conventional _ symbol.
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, = {}) cache_key = [name, format] + Array.wrap([:dependencies]) @@cache[cache_key.join('.')] ||= begin Digestor.new(name, format, finder, ).digest end end |