Prefer initializer over controller config.

This commit is contained in:
Neil Matatall 2013-02-05 16:24:49 -08:00
Родитель 982d2485f5
Коммит 47da3f253b
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -49,7 +49,7 @@ This gem makes a few assumptions about how you will use some features. For exam
## Configuration
**Place the following in an initializer:**
**Place the following in an initializer (recommended):**
```ruby
::SecureHeaders::Configuration.configure do |config|
@ -70,7 +70,7 @@ end
ensure_security_headers
```
Or simply add it to application controller
Or simply add it to application controller (not recommended, currently a bug)
```ruby
ensure_security_headers