-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update seeds * update seeds
- Loading branch information
Showing
5 changed files
with
53 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
branch-defaults: | ||
actions: | ||
environment: prod-env | ||
main: | ||
environment: prod-env | ||
environment-defaults: | ||
prod-env: | ||
branch: null | ||
repository: null | ||
global: | ||
application_name: hop-skip-drive-test | ||
default_ec2_keyname: null | ||
default_platform: Ruby 3.2 running on 64bit Amazon Linux 2023 | ||
default_region: us-west-2 | ||
include_git_submodules: true | ||
instance_profile: null | ||
platform_name: null | ||
platform_version: null | ||
profile: null | ||
sc: git | ||
workspace_type: Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
ruby-3.3.0 | ||
3.3.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
# rubocop:disable Lint/RedundantSafeNavigation | ||
class ApplicationController < ActionController::API | ||
private def pagination_params | ||
params.permit(:limit, :offset) | ||
end | ||
private def limit | ||
pagination_params[:limit] || 2 | ||
pagination_params[:limit]&.to_i || 2 | ||
end | ||
|
||
private def offset | ||
pagination_params[:offset] || 0 | ||
pagination_params[:offset]&.to_i || 0 | ||
end | ||
end | ||
# rubocop:enable Lint/RedundantSafeNavigation |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters