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.1.0 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.0.1 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-1.0.0 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-0.7.1 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-0.7.0 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-0.7.0.pre.1 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-0.6.0 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-0.5.7 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-rails2-0.5.10 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-rails2-0.5.9 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-rails2-0.5.8 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-rails2-0.5.7 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-rails2-0.5.6 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-0.5.6 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-0.5.5 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-0.5.4 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-0.5.3 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-0.5.2 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-0.5.1 lib/couch_potato/persistence/ghost_attributes.rb
couch_potato-0.5.0 lib/couch_potato/persistence/ghost_attributes.rb