Skip to content

Commit f482b36

Browse files
author
Ben Lavender
committed
we can't have nice things in different rails versions
1 parent 2c29a26 commit f482b36

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

lib/chatops/controller.rb

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

88
included do
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
15-
end
9+
before_action :ensure_valid_chatops_url, if: :should_authenticate_chatops?
10+
before_action :ensure_valid_chatops_timestamp, if: :should_authenticate_chatops?
11+
before_action :ensure_valid_chatops_signature, if: :should_authenticate_chatops?
12+
before_action :ensure_valid_chatops_nonce, if: :should_authenticate_chatops?
13+
before_action :ensure_chatops_authenticated, if: :should_authenticate_chatops?
1614
before_action :ensure_user_given
1715
before_action :ensure_method_exists
1816
end

0 commit comments

Comments
 (0)