Skip to content

Commit 31c23ac

Browse files
author
Ben Lavender
authored
Merge pull request #28 from github/no-more-with-options
Stop using with_options
2 parents 7f98b1a + f482b36 commit 31c23ac

2 files changed

Lines changed: 6 additions & 8 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

lib/chatops/controller/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module ChatopsController
2-
VERSION = "3.0.2"
2+
VERSION = "3.0.3"
33
end

0 commit comments

Comments
 (0)