From 3ae5aa9682a037bb289662de74c21f82b056f7a1 Mon Sep 17 00:00:00 2001 From: shunyama Date: Sat, 20 Nov 2021 02:21:22 +0900 Subject: [PATCH] [skip ci]fix grammatical-mistakes-and-typo --- .../activerecord/active_record_relation_methods.rb | 2 +- kaminari-core/lib/kaminari/helpers/helper_methods.rb | 10 +++++----- kaminari-core/lib/kaminari/helpers/tags.rb | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/kaminari-activerecord/lib/kaminari/activerecord/active_record_relation_methods.rb b/kaminari-activerecord/lib/kaminari/activerecord/active_record_relation_methods.rb index ed35fbe..5b172c5 100644 --- a/kaminari-activerecord/lib/kaminari/activerecord/active_record_relation_methods.rb +++ b/kaminari-activerecord/lib/kaminari/activerecord/active_record_relation_methods.rb @@ -59,7 +59,7 @@ module Kaminari refine ::ActiveRecord::Relation do private - # Update multiple instance variables that holds `limit` to a given value + # Update multiple instance variables that hold `limit` to a given value def set_limit_value(new_limit) @values[:limit] = new_limit diff --git a/kaminari-core/lib/kaminari/helpers/helper_methods.rb b/kaminari-core/lib/kaminari/helpers/helper_methods.rb index 99c1359..a0dbd7f 100644 --- a/kaminari-core/lib/kaminari/helpers/helper_methods.rb +++ b/kaminari-core/lib/kaminari/helpers/helper_methods.rb @@ -4,14 +4,14 @@ module Kaminari module Helpers # The Kaminari::Helpers::UrlHelper module provides useful methods for - # generating a path or url to a particlar page. A class must implement the + # generating a path or url to a particular page. A class must implement the # following methods: # # * url_for: A method that generates an actual path # * params: A method that returns query string parameters # * request: A method that returns a Rack::Request object # - # A normal Rails controller implements all the methods, which makes it + # A normal Rails controller implements all the methods, which make it # trivial to use this module: # # ==== Examples @@ -20,10 +20,10 @@ module Kaminari # include Kaminari::Helpers::UrlHelper # # def index - # @users = User.page(1) + # @users = User.page(1) # - # path_to_next_page(@items) - # # => /items?page=2 + # path_to_next_page(@items) + # # => /items?page=2 # end # end # diff --git a/kaminari-core/lib/kaminari/helpers/tags.rb b/kaminari-core/lib/kaminari/helpers/tags.rb index 702e66e..8163164 100644 --- a/kaminari-core/lib/kaminari/helpers/tags.rb +++ b/kaminari-core/lib/kaminari/helpers/tags.rb @@ -13,7 +13,7 @@ module Kaminari # class, so _tag partial is not needed). # e.g.) PrevLink -> app/views/kaminari/_prev_link.html.erb # - # When no matching template were found in your app, the engine's pre + # When no matching templates were found in your app, the engine's pre # installed template will be used. # e.g.) Paginator -> $GEM_HOME/kaminari-x.x.x/app/views/kaminari/_paginator.html.erb class Tag