Skip to content

Commit a83ae6a

Browse files
authored
Merge pull request #707 from rubyforgood/ruby261
Update the ruby version to 2.6.1
2 parents a0d4396 + b29c12c commit a83ae6a

15 files changed

+16
-16
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.5.3
1+
2.6.1

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ git_source(:github) do |repo_name|
55
"https://github.com/#{repo_name}.git"
66
end
77

8-
ruby "2.5.3"
8+
ruby "2.6.1"
99

1010
gem "api-auth", "~> 2.3"
1111
gem "bootstrap-sass"

Gemfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ DEPENDENCIES
515515
yajl-ruby
516516

517517
RUBY VERSION
518-
ruby 2.5.3p105
518+
ruby 2.6.1p33
519519

520520
BUNDLED WITH
521-
1.16.6
521+
1.17.2

app/controllers/adjustments_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class AdjustmentsController < ApplicationController
55
# GET /adjustments.json
66
def index
77
@selected_location = filter_params[:at_location]
8-
@adjustments = current_organization.adjustments.filter(filter_params)
8+
@adjustments = current_organization.adjustments.class_filter(filter_params)
99

1010
@storage_locations = Adjustment.storage_locations_adjusted_for(current_organization).uniq
1111
end

app/controllers/audits_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class AuditsController < ApplicationController
44

55
def index
66
@selected_location = filter_params[:at_location]
7-
@audits = current_organization.audits.filter(filter_params)
7+
@audits = current_organization.audits.class_filter(filter_params)
88
@storage_locations = Audit.storage_locations_audited_for(current_organization).uniq
99
end
1010

app/controllers/barcode_items_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ class BarcodeItemsController < ApplicationController
22
def index
33
@items = Item.gather_items(current_organization, @global)
44
@canonical_items = CanonicalItem.all
5-
@barcode_items = current_organization.barcode_items.include_global(false).filter(filter_params)
5+
@barcode_items = current_organization.barcode_items.include_global(false).class_filter(filter_params)
66
end
77

88
def create

app/controllers/donations_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def index
3030
@donations = current_organization.donations
3131
.includes(:line_items, :storage_location, :donation_site, :diaper_drive_participant)
3232
.order(created_at: :desc)
33-
.filter(filter_params)
33+
.class_filter(filter_params)
3434
# Are these going to be inefficient with large datasets?
3535
# Using the @donations allows drilling down instead of always starting with the total dataset
3636
@donations_quantity = @donations.collect(&:total_quantity).sum

app/controllers/items_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class ItemsController < ApplicationController
22
def index
3-
@items = current_organization.items.includes(:canonical_item).alphabetized.filter(filter_params)
3+
@items = current_organization.items.includes(:canonical_item).alphabetized.class_filter(filter_params)
44
@storages = current_organization.storage_locations.order(id: :asc)
55
@items_with_counts = ItemsByStorageCollectionQuery.new(organization: current_organization, filter_params: filter_params).call
66
@items_by_storage_collection_and_quantity = ItemsByStorageCollectionAndQuantityQuery.new(organization: current_organization, filter_params: filter_params).call

app/controllers/purchases_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def index
77
@purchases = current_organization.purchases
88
.includes(:line_items, :storage_location)
99
.order(created_at: :desc)
10-
.filter(filter_params)
10+
.class_filter(filter_params)
1111
# Are these going to be inefficient with large datasets?
1212
# Using the @purchases allows drilling down instead of always starting with the total dataset
1313
@storage_locations = @purchases.collect(&:storage_location).compact.uniq

app/controllers/storage_locations_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class StorageLocationsController < ApplicationController
33

44
def index
55
@items = current_organization.storage_locations.items_inventoried
6-
@storage_locations = current_organization.storage_locations.includes(:inventory_items).filter(filter_params)
6+
@storage_locations = current_organization.storage_locations.includes(:inventory_items).class_filter(filter_params)
77
end
88

99
def create

0 commit comments

Comments
 (0)