Module: Persisto::Repository
- Defined in:
- lib/persisto/repository.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
5 6 7 |
# File 'lib/persisto/repository.rb', line 5 def self.included(base) base.extend ClassMethods end |
Instance Method Details
#initialize(adaptor) ⇒ Object
28 29 30 31 |
# File 'lib/persisto/repository.rb', line 28 def initialize adaptor @adaptor = adaptor @stores = {} end |
#transaction(&block) ⇒ Object
33 34 35 |
# File 'lib/persisto/repository.rb', line 33 def transaction &block adaptor.transaction &block end |