Method: Kiosk::Cacheable::Resource::ClassMethods#connection
- Defined in:
- lib/kiosk/cacheable/resource.rb
#connection(*args) ⇒ Object
Reimplements method to provide a cacheable connection.
45 46 47 48 49 |
# File 'lib/kiosk/cacheable/resource.rb', line 45 def connection(*args) connection = super(*args) connection.extend(Cacheable::Connection) unless connection.is_a?(Cacheable::Connection) connection end |