Adam Meehan
7ec4c1424d
Add resource_params internal helper to param filtering
...
In light of recent discussions around mass assignment security and
the alternate solution of using the controller to filter params, not the model,
a hook/helper is needed to be able to override how the params are filtered
before they are used to build the resource.
2012-05-15 18:07:02 +10:00
Rodrigo Flores
8baacecdcf
Fixing tests
2012-05-14 17:53:34 -03:00
José Valim
454a5ad1ec
Try to fix the build for rails 3.1
2012-05-09 23:41:05 +02:00
Rodrigo Flores
1698f0f57c
Merge branch 'removing_encryptable'
2012-05-09 18:05:14 -03:00
Rodrigo Flores
39dc9a7ba6
Removed encryptable references on rails_app
2012-05-09 14:49:55 -03:00
José Valim
65ef2592f6
Add a test case to previous commit
2012-05-09 18:27:44 +02:00
Rodrigo Flores
768f8832b9
Removing encryptable module
2012-05-07 16:37:16 -03:00
José Valim
32f20dddd6
Get rid of deprecated code
2012-05-06 13:13:53 +02:00
José Valim
5e845ee265
Do not reproduce warden behavior, simply rely on the controller calling it
2012-05-06 12:09:53 +02:00
Matt Connolly
a9b7a4a1de
Reinstating tests for the controller test's response object. This does need to be set so the strategy's custom response can be tested.
2012-05-06 19:24:57 +10:00
Matt Connolly
2a3a8b8008
Changing test to not bother with saved response, since it wasn't set by the test.
2012-05-06 17:08:00 +10:00
Matt Connolly
90a63d4d89
Completing test and functionality for TestHelper to correctly return a custom response from a warden strategy.
2012-05-06 16:48:39 +10:00
Matt Connolly
66f74ed579
Adding a test for a warden strategy retuning a custom response.
2012-05-06 13:35:24 +10:00
José Valim
d376d11d42
Merge pull request #1825 from julianvargasalvarez/master
...
Use 'head :no_content' in sessions_controller#destroy
2012-05-03 00:27:21 -07:00
Julian Vargas
6664acd27f
Use 'head :no_content' in sessions_controller#destroy
...
Code cleanup for returning headers instead of an empty string
when destroying sessions.
Lines 464 and 471 on test/integration/autenticatable_test.rb
were adjusted to assert on :no_content
2012-05-02 22:40:53 -05:00
Rodrigo Flores
525bcd4e2d
Refactoring simulation inside engine to decide based on the api
2012-05-02 14:53:14 -03:00
Rodrigo Flores
271eac7381
Testes passing on 3.1 \o/
2012-05-02 14:15:42 -03:00
Rodrigo Flores
afc3888391
Generators on engine fix
2012-05-02 14:15:42 -03:00
Andrey Deryabin
9ec1003f1e
removed global namespaces
2012-04-16 21:27:16 +07:00
Christopher Meiklejohn
eb4e23274d
Ensure ActiveRecord is defined, which is not true when running Mongoid tests.
2012-04-07 15:54:00 -03:00
Rodrigo Flores
07ef99a8f0
Changelog and a minor change on the test title
2012-04-04 17:27:41 -03:00
Rodrigo Flores
857af600f7
Merge pull request #1722 from Antiarchitect/master
...
Token regeneration on session timeout.
2012-04-04 13:23:27 -07:00
Andrey Voronkov
7ecbba089f
Authentication token expiration on session timeout
2012-04-02 20:48:23 +04:00
José Valim
52b4bab461
Fix failing test.
2012-03-30 09:13:28 +02:00
José Valim
b74f71fbed
Fix build so it works with Rails 3.1.
2012-03-26 18:50:39 +03:00
David FRANCOIS
885d8836d1
Ability to use attr_protected attributes as sign-in keys without triggering ActiveModel::MassAssignmentSecurity::Error when ActiveRecord::Base.mass_assignment_sanitizer is set to :strict. Fixes #1729 .
2012-03-21 11:48:00 +01:00
Rodrigo Flores
3623215b8c
failed_attempts is set to 0 on sign in
2012-03-19 17:09:22 -03:00
Rodrigo Flores
a7658f9d75
Checking required fields on lockable
2012-03-13 15:50:13 -03:00
José Valim
0ab28ef8ee
Add skip_reconfirmation! , closes #1708
2012-03-09 18:12:30 +01:00
Rodrigo Flores
7b7af57813
Minor fixes on models_test
2012-03-03 15:10:17 -03:00
Rodrigo Flores
a12f6ec70c
Failure is better than exceptions
2012-03-03 14:49:59 -03:00
Rodrigo Flores
fffc3b1e0e
Moved a method to support
2012-03-03 14:41:22 -03:00
Rodrigo Flores
ecfc7d752a
Deprecation warning on module doesn't have a required_fields method
2012-03-03 14:30:59 -03:00
Rodrigo Flores
9bf718dd82
Revert "Move devise/shared/_links.erb to devise/_links.erb"
...
This reverts commit aa2d15aa33 .
Conflicts:
CHANGELOG.rdoc
2012-03-03 10:40:59 -03:00
Rodrigo Flores
bb4f699d03
Fixing two tests
2012-03-03 01:25:17 -03:00
Rodrigo Flores
5ef35ee1bd
Adding required_fields to all modules
2012-02-24 20:57:58 -02:00
Rodrigo Flores
6d5bccc050
Added required fields to validatable
2012-02-24 20:57:58 -02:00
Lucas Mazza
64c05f2ce9
Fix the assert_same_content assertion helper
...
and a broken confirmable test.
2012-02-22 16:49:09 -02:00
Rodrigo Flores
803e4f5524
Changed message and refactored exception to use a initializer
2012-02-22 13:55:06 -02:00
Rodrigo Flores
a909bfaf85
Added required_fields when reconfirmable
2012-02-22 13:55:06 -02:00
Rodrigo Flores
bc11e9f300
One exception to rule them all
2012-02-22 13:55:05 -02:00
Rodrigo Flores
e3412d4207
No need to sort anymore
2012-02-22 13:55:05 -02:00
Rodrigo Flores
faf8b01ecc
Fixing some tests and adding an assert message
2012-02-22 13:55:05 -02:00
Rodrigo Flores
d7337c5b26
Added a missing test and asserting same content for 1.8 compatibility
2012-02-22 13:55:05 -02:00
Rodrigo Flores
2ab1086b80
Test, you shall pass!
2012-02-22 13:55:05 -02:00
Rodrigo Flores
85f2f88c59
Added required fields to lockable
2012-02-22 13:55:05 -02:00
Rodrigo Flores
ce3422e75a
Added required_fields to recoverable
2012-02-22 13:55:04 -02:00
Rodrigo Flores
bee87843b4
Added required_fields to rememberable
2012-02-22 13:55:04 -02:00
Rodrigo Flores
18aef6ac33
Some refactor
2012-02-22 13:55:03 -02:00
Rodrigo Flores
890f6031c3
Required fields on trackable
2012-02-22 13:55:03 -02:00