Skip to content

Commit

Permalink
fix: require necessary ActiveSupport parts in proper order
Browse files Browse the repository at this point in the history
* fix: require necessary ActiveSupport parts in proper order
* fix: make gem compatible with older ActiveSupport versions
  • Loading branch information
factyy authored Jun 11, 2024
1 parent 1479411 commit bb2a488
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/graphiti.rb
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
require "json"
require "forwardable"
require "uri"

require "active_support/version"
require "active_support/deprecation"
require "active_support/deprecator" if ::ActiveSupport.version >= Gem::Version.new("7.1")
require "active_support/core_ext/string"
require "active_support/core_ext/enumerable"
require "active_support/core_ext/class/attribute"
require "active_support/core_ext/hash/conversions" # to_xml
require "active_support/concern"
require "active_support/time"
require "active_support/deprecation"

require "dry-types"
require "graphiti_errors"
Expand Down
2 changes: 1 addition & 1 deletion lib/graphiti/scope.rb
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def updated_at
Graphiti.log(e)
end

return updated_time || Time.now
updated_time || Time.now
end
alias_method :last_modified_at, :updated_at

Expand Down

0 comments on commit bb2a488

Please sign in to comment.