Skip to content

Commit 0cf85ba

Browse files
committed
Linter fixes
1 parent ef4ee33 commit 0cf85ba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/graphiti.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ def self.logger=(val)
8383
end
8484

8585
def self.log(msg, color = :white, bold = false)
86-
if ::ActiveSupport.version >= Gem::Version.new("7.1")
87-
colored = ActiveSupport::LogSubscriber.new.send(:color, msg, color, bold: bold)
86+
colored = if ::ActiveSupport.version >= Gem::Version.new("7.1")
87+
ActiveSupport::LogSubscriber.new.send(:color, msg, color, bold: bold)
8888
else
89-
colored = ActiveSupport::LogSubscriber.new.send(:color, msg, color, bold)
89+
ActiveSupport::LogSubscriber.new.send(:color, msg, color, bold)
9090
end
9191

9292
logger.debug(colored)

lib/graphiti/resource_proxy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ def update
158158
save(action: :update)
159159
end
160160

161-
alias update_attributes update
161+
alias_method update_attributes update
162162

163163
def include_hash
164164
@include_hash ||= begin

0 commit comments

Comments
 (0)