Skip to content

Commit dcd3a67

Browse files
committed
Include ActionView helpers in ActionView::Base
Including the helpers directly in Helpers meant they were unavailable in views in Rails 4.2. This makes them available.
1 parent 7f95fdd commit dcd3a67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/secure_headers/view_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def unexpected_hash_error_message(file_path, hash_value, content)
6262
end
6363

6464
module ActionView #:nodoc:
65-
module Helpers #:nodoc:
65+
class Base #:nodoc:
6666
include SecureHeaders::ViewHelpers
6767
end
6868
end

0 commit comments

Comments
 (0)