Class: Og::Adapter
Overview
A specialization of a Store.
Instance Attribute Summary
Attributes inherited from Store
Class Method Summary collapse
-
.for_name(name) ⇒ Object
Load the store for the given name.
Methods inherited from Store
#close, #commit, #count, #delete, #delete_all, #enchant, #find, #force_save!, #initialize, #insert, #load, #reload, #rollback, #save, #start, #transaction, #update, #update_attributes
Constructor Details
This class inherits a constructor from Og::Store
Class Method Details
.for_name(name) ⇒ Object
Load the store for the given name.
11 12 13 14 15 |
# File 'lib/og/adapter.rb', line 11 def self.for_name name Logger.info "Og uses the #{name.to_s.capitalize} store." require('og/adapter/' + name.to_s) return Og.const_get("#{name.to_s.capitalize}Adapter") end |