Class: Upgrow::Repository
- Inherits:
-
BasicRepository
- Object
- BasicRepository
- Upgrow::Repository
- Includes:
- ActiveRecordConversion, ActiveRecordQueries
- Defined in:
- lib/upgrow/repository.rb
Overview
Repositories are responsible for the persistence layer of the app. They encapsulate Rails’ Active Record in a subset of simple methods for querying and persistence of data, and return simple read-only objects as a result. This allows the app to isolate Active Record only to this subset, exposing only the desired queries and methods to other layers through Repositories.
Instance Attribute Summary
Attributes inherited from BasicRepository
Method Summary
Methods included from ActiveRecordQueries
#all, #create, #delete, #find, included, #update
Methods included from ActiveRecordConversion
Methods inherited from BasicRepository
Constructor Details
This class inherits a constructor from Upgrow::BasicRepository