1
0
Fork 0
mirror of https://github.com/kaminari/kaminari.git synced 2022-11-09 13:44:37 -05:00

[skip ci]fix grammatical-mistakes-and-typo

This commit is contained in:
shunyama 2021-11-20 02:21:22 +09:00
parent 73b93405b9
commit 3ae5aa9682
3 changed files with 7 additions and 7 deletions

View file

@ -59,7 +59,7 @@ module Kaminari
refine ::ActiveRecord::Relation do refine ::ActiveRecord::Relation do
private 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) def set_limit_value(new_limit)
@values[:limit] = new_limit @values[:limit] = new_limit

View file

@ -4,14 +4,14 @@ module Kaminari
module Helpers module Helpers
# The Kaminari::Helpers::UrlHelper module provides useful methods for # 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: # following methods:
# #
# * <tt>url_for</tt>: A method that generates an actual path # * <tt>url_for</tt>: A method that generates an actual path
# * <tt>params</tt>: A method that returns query string parameters # * <tt>params</tt>: A method that returns query string parameters
# * <tt>request</tt>: A method that returns a Rack::Request object # * <tt>request</tt>: 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: # trivial to use this module:
# #
# ==== Examples # ==== Examples
@ -20,10 +20,10 @@ module Kaminari
# include Kaminari::Helpers::UrlHelper # include Kaminari::Helpers::UrlHelper
# #
# def index # def index
# @users = User.page(1) # @users = User.page(1)
# #
# path_to_next_page(@items) # path_to_next_page(@items)
# # => /items?page=2 # # => /items?page=2
# end # end
# end # end
# #

View file

@ -13,7 +13,7 @@ module Kaminari
# class, so _tag partial is not needed). # class, so _tag partial is not needed).
# e.g.) PrevLink -> app/views/kaminari/_prev_link.html.erb # 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. # installed template will be used.
# e.g.) Paginator -> $GEM_HOME/kaminari-x.x.x/app/views/kaminari/_paginator.html.erb # e.g.) Paginator -> $GEM_HOME/kaminari-x.x.x/app/views/kaminari/_paginator.html.erb
class Tag class Tag