File tree 2 files changed +10
-1
lines changed 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
10
10
* Breaking Changes
11
11
* None
12
12
* Added
13
- * None
13
+ * [ #684 ] ( https://github.com/binarylogic/authlogic/pull/684 ) - Use cookies
14
+ only when available. Support for ` ActionController::API `
14
15
* Fixed
15
16
* None
16
17
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ An unobtrusive ruby authentication library based on ActiveRecord.
36
36
- [ 2.b. Controller] ( #2b-controller )
37
37
- [ 2.b.1. Helper Methods] ( #2b1-helper-methods )
38
38
- [ 2.b.2. Routes] ( #2b2-routes )
39
+ - [ 2.b.3. ActionController::API] ( #2b3-actioncontroller-api )
39
40
- [ 2.c. View] ( #2c-view )
40
41
- [ 2.d. CSRF Protection] ( #2d-csrf-protection )
41
42
- [ 3. Testing] ( #3-testing )
@@ -345,6 +346,13 @@ Rails.application.routes.draw do
345
346
end
346
347
```
347
348
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
+
348
356
### 2.c. View
349
357
350
358
For example, in ` app/views/user_sessions/new.html.erb ` :
You can’t perform that action at this time.
0 commit comments