lib/hanami/repository.rb in hanami-model-1.0.4 vs lib/hanami/repository.rb in hanami-model-1.1.0.beta1
- old
+ new
@@ -52,11 +52,11 @@
#
#
#
# All the queries and commands are private.
# This decision forces developers to define intention revealing API, instead
- # of leaking storage API details outside of a repository.
+ # leak storage API details outside of a repository.
#
# @example
# require 'hanami/model'
#
# # This is bad for several reasons:
@@ -85,11 +85,11 @@
# # It doesn't even know about records, only works with entities.
# #
# # * It expresses a clear intent.
# #
# # * The caller can be easily tested in isolation.
- # # It's just a matter of stubbing this method.
+ # # It's just a matter of stub this method.
# #
# # * If we change the storage, the callers aren't affected.
#
# ArticleRepository.new.most_recent_by_author(author)
#
@@ -165,11 +165,11 @@
}
end
# rubocop:enable Metrics/AbcSize
# rubocop:enable Metrics/MethodLength
- # Defines the mapping between a database table and an entity.
+ # Defines the ampping between a database table and an entity.
#
# It's also responsible to associate table columns to entity attributes.
#
# @since 0.7.0
# @api private
@@ -312,10 +312,10 @@
#
# @since 0.7.0
module Commands
# Create a new record
#
- # @return [Hanami::Entity] a new created entity
+ # @return [Hanami::Entity] an new created entity
#
# @raise [Hanami::Model::Error] an error in case the command fails
#
# @since 0.7.0
#