Sha256: c0894e3362dc5b0ed3ca00472af83d1c5b30e2049340cb22740e40eb53315dd2

Contents?: true

Size: 374 Bytes

Versions: 1

Compression:

Stored size: 374 Bytes

Contents

# frozen_string_literal: true
# rails 3.1+
if defined?(Rails::Railtie)
  module SecureCookies
    class Railtie < Rails::Railtie
      isolate_namespace SecureCookies if defined? isolate_namespace # rails 3.0

      initializer "secure_cookies.middleware" do
        Rails.application.config.middleware.insert_before 0, SecureCookies::Middleware
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
secure_cookies2-0.1.0 lib/secure_cookies/railtie.rb