Class: Smooth::Cache

Inherits:
Object show all
Includes:
Singleton
Defined in:
lib/smooth/cache.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args, &block) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/smooth/cache.rb', line 11

def method_missing(meth, *args, &block)
  if defined? ::Rails
    return ::Rails.cache.send(meth, *args, &block)
  end

  super
end