Skip to content

Commit

Permalink
Remove PERPAGE_TYPES from UiConstants
Browse files Browse the repository at this point in the history
  • Loading branch information
europ committed Aug 3, 2017
1 parent b4434ff commit 0903328
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ def pp_choices

ONE_MILLION = 1_000_000 # Setting high number incase we don't want to display paging controls on list views

PERPAGE_TYPES = %w(grid tile list reports).each_with_object({}) { |value, acc| acc[value] = value.to_sym }.freeze

def local_request?
Rails.env.development? || Rails.env.test?
end
Expand Down
2 changes: 0 additions & 2 deletions app/helpers/ui_constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ module UiConstants
}
}

PERPAGE_TYPES = %w(grid tile list reports).each_with_object({}) { |value, acc| acc[value] = value.to_sym }.freeze

# Default UI settings
DEFAULT_SETTINGS = {
:quadicons => { # Show quad icons, by resource type
Expand Down

0 comments on commit 0903328

Please sign in to comment.