Class: Rabl::Digestor
- Inherits:
-
ActionView::Digestor
- Object
- ActionView::Digestor
- Rabl::Digestor
- 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, = {}) cache_key = [name, format] + Array.wrap([:dependencies]) @@cache[cache_key.join('.')] ||= begin Digestor.new(name, format, finder, ).digest end end |