Skip to content

Commit 165df0f

Browse files
author
Ben Lavender
committed
Use argument form of with_options
Without the arg, this seems to work only in some versions of rails
1 parent 3559cee commit 165df0f

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

lib/chatops/controller.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ class ConfigurationError < StandardError ; end
66
extend ActiveSupport::Concern
77

88
included do
9-
with_options if: :should_authenticate_chatops? do
10-
before_action :ensure_valid_chatops_url
11-
before_action :ensure_valid_chatops_timestamp
12-
before_action :ensure_valid_chatops_signature
13-
before_action :ensure_valid_chatops_nonce
14-
before_action :ensure_chatops_authenticated
9+
with_options if: :should_authenticate_chatops? do |controller|
10+
controller.before_action :ensure_valid_chatops_url
11+
controller.before_action :ensure_valid_chatops_timestamp
12+
controller.before_action :ensure_valid_chatops_signature
13+
controller.before_action :ensure_valid_chatops_nonce
14+
controller.before_action :ensure_chatops_authenticated
1515
end
1616
before_action :ensure_user_given
1717
before_action :ensure_method_exists

0 commit comments

Comments
 (0)