Sha256: 333b6bde397e171908013a24c93ba2a803cad194eeadcfc0b0ee53c2c9a5c6b8

Contents?: true

Size: 209 Bytes

Versions: 40

Compression:

Stored size: 209 Bytes

Contents

module CouchPotato
  module GhostAttributes #:nodoc:
    def method_missing(name, *args)
      if(value = _document && _document[name.to_s])
        value
      else
        super
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 2 rubygems

Version Path
couch_potato-1.15.0 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.14.0 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.13.0 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.12.1 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.12.0 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.11.0 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.10.1 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.10.0 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.9.0 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.7.1 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.7.0 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.6.5 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.6.4 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.6.3 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.4.0 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.3.0 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.2.0 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.1.4 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.1.2 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.1.1 lib/couch_potato/persistence/ghost_attributes.rb