Sha256: 4f2e0cd2d4fd834ff7f8e10373692350762700ea0a4fa9e3d81eaab0d7543fb7
Contents?: true
Size: 453 Bytes
Versions: 2
Compression:
Stored size: 453 Bytes
Contents
# rails 3.1+ if defined?(Rails::Railtie) module SecureHeaders class Railtie < Rails::Engine isolate_namespace ::SecureHeaders if defined? isolate_namespace # rails 3.0 initializer "secure_headers.action_controller" do ActiveSupport.on_load(:action_controller) do include ::SecureHeaders end end end end else module ActionController class Base include ::SecureHeaders end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
secure_headers-2.0.0.pre2 | lib/secure_headers/railtie.rb |
secure_headers-2.0.0.pre | lib/secure_headers/railtie.rb |