Skip to content

Commit

Permalink
refactor: メソッド名を再見直し
Browse files Browse the repository at this point in the history
  • Loading branch information
morikiyo committed Mar 22, 2024
1 parent b8030bf commit 1831601
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/sg_fargate_rails/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class Railtie < ::Rails::Railtie
Blazer::Plus.blazer_danger_actionable_method ||= ->(blazer_user) { blazer_user.email.ends_with?('@sonicgarden.jp') }

# NOTE: すべての callback をすてているので致し方なく Blazer の用意している callback を利用する
Blazer.before_action = :authenticate_user_to_access_blazer!
Blazer.before_action = :authenticate_to_access_blazer!
end

ActiveSupport.on_load(:good_job_application_controller) do
Expand All @@ -40,9 +40,9 @@ def sg_fargate_rails_proxy_access!
end

ActiveSupport.on_load(:action_controller_base) do
prepend_before_action :authenticate_user_to_access_good_job!
prepend_before_action :authenticate_to_access_good_job!

def authenticate_user_to_access_good_job!
def authenticate_to_access_good_job!
return unless defined?(::GoodJob)
return unless self.class.module_parent == ::GoodJob

Expand All @@ -51,7 +51,7 @@ def authenticate_user_to_access_good_job!
end
end

def authenticate_user_to_access_blazer!
def authenticate_to_access_blazer!
return unless defined?(::Blazer)
return unless self.class.module_parent == ::Blazer

Expand Down

0 comments on commit 1831601

Please sign in to comment.