Sha256: 0ff34abe30528452d8667f5295f598f58d99c4f668b144c1a266fbcdf8e4b2d6

Contents?: true

Size: 673 Bytes

Versions: 2

Compression:

Stored size: 673 Bytes

Contents

# frozen_string_literal: true

require_relative 'active_record_conversion'
require_relative 'active_record_queries'
require_relative 'basic_repository'

module Upgrow
  # 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.
  class Repository < BasicRepository
    include ActiveRecordConversion
    include ActiveRecordQueries
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
upgrow-0.0.5 lib/upgrow/repository.rb
upgrow-0.0.4 lib/upgrow/repository.rb