Class: ActivePStore::Base
- Inherits:
-
Object
- Object
- ActivePStore::Base
- Extended by:
- ConnectionHandling, DynamicMatchers, FinderMethods, Inheritance, ModelSchema, QueryMethods, Querying, SingleForwardable
- Includes:
- Core, Persistence
- Defined in:
- lib/active_pstore/base.rb
Instance Attribute Summary
Attributes included from Persistence
Class Method Summary collapse
Methods included from ConnectionHandling
establish_connection, use_connection
Methods included from DynamicMatchers
Methods included from FinderMethods
find, find_by, find_by!, first, last, take
Methods included from Inheritance
Methods included from Querying
count, destroy_all, update_all
Methods included from QueryMethods
Methods included from ModelSchema
Methods included from Persistence
#destroy, #new_record?, #save, #update, #update_attribute
Methods included from Core
Class Method Details
.all ⇒ Object
20 21 22 23 24 |
# File 'lib/active_pstore/base.rb', line 20 def all use_connection do |connection| ActivePStore::Collection.new(connection[self.pstore_key] || []) end end |