Skip to content

Commit b8aa4bf

Browse files
committed
Docs: #684
1 parent 7027e44 commit b8aa4bf

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
1010
* Breaking Changes
1111
* None
1212
* Added
13-
* None
13+
* [#684](https://github.com/binarylogic/authlogic/pull/684) - Use cookies
14+
only when available. Support for `ActionController::API`
1415
* Fixed
1516
* None
1617

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ An unobtrusive ruby authentication library based on ActiveRecord.
3636
- [2.b. Controller](#2b-controller)
3737
- [2.b.1. Helper Methods](#2b1-helper-methods)
3838
- [2.b.2. Routes](#2b2-routes)
39+
- [2.b.3. ActionController::API](#2b3-actioncontroller-api)
3940
- [2.c. View](#2c-view)
4041
- [2.d. CSRF Protection](#2d-csrf-protection)
4142
- [3. Testing](#3-testing)
@@ -345,6 +346,13 @@ Rails.application.routes.draw do
345346
end
346347
```
347348

349+
#### 2.b.3. ActionController::API
350+
351+
> Because ActionController::API does not include ActionController::Cookies
352+
> metal and ActionDispatch::Cookies rack module, Therefore, our controller can
353+
> not use the cookies method.
354+
> - [#684](https://github.com/binarylogic/authlogic/pull/684).
355+
348356
### 2.c. View
349357

350358
For example, in `app/views/user_sessions/new.html.erb`:

0 commit comments

Comments
 (0)