Skip to content

Commit

Permalink
LTI-393: fixed old bug that affected refactoring in the broker app (#26)
Browse files Browse the repository at this point in the history
* LTI-393: fixed old bug that affected refactoring in the broker app

* LTI-393: bumped version to patch 1

* LTI-393: bumped version to patch 1

* LTI-393: bumped version to patch 1
  • Loading branch information
jfederico authored Jun 28, 2024
1 parent 019d5ba commit ca95761
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions app/models/rails_lti2_provider/tool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ def tool_proxy
def self.find_by_issuer(issuer, options = {})
return Tool.find_by(uuid: issuer) unless options.any?

Rails.logger.warn(options.inspect)
Rails.logger.debug(options.inspect)
Tool.where(uuid: issuer).find_each do |tool|
tool_settings = JSON.parse(tool.tool_settings)
options.each do |key, _value|
return tool if tool_settings[key] == options[key]
options.each do |key, value|
return tool if tool_settings[key.to_s] == value
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rails_lti2_provider/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module RailsLti2Provider
VERSION = '0.2.1'
VERSION = '0.2.1.1'
end

0 comments on commit ca95761

Please sign in to comment.