José Valim
1581a34ee4
Merge pull request #3195 from fgro/master
...
Removes reloading of routes when eager loading ...
2014-09-18 19:44:45 +02:00
José Valim
32b5299547
Merge pull request #3171 from micat/find_scope-should-accept-string
...
Url helpers raise "undefined method `router_name' for nil:NilClass"
2014-09-18 19:41:49 +02:00
Fred Grosskopf
db88341402
Removes reloading of routes when eager loading ...
...
... is enabled.
The old code may cause conflicts when developing an engine (i.e. invalid
route name) and according to @josevalim the reason for it to remain is
unknown.
2014-09-08 14:21:33 +02:00
Lucas Mazza
6af18ed9e3
Change the 'postgresql?' check to not connect to the database.
...
Closes #3181
2014-09-02 11:24:31 -03:00
Anton Rieder
6117a3b56d
Update Simple Form templates for 3.3.0
2014-09-01 21:59:03 +02:00
micat
7b5293906b
Return Symbol in find_scope! if String passed
2014-08-24 21:36:11 +09:00
Lucas Mazza
6e95b66b54
Release v3.3.0
2014-08-13 13:41:14 -03:00
Lucas Mazza
6f75fc7a14
Do not mutate the receiving arguments
2014-08-06 13:28:17 -03:00
Lucas Mazza
876644168b
remove intermediate Array manipulation
2014-08-06 13:24:29 -03:00
Lucas Mazza
880146668b
Update devise_group documentation
2014-08-06 13:24:10 -03:00
Lucas Mazza
eb9db7ba3a
Coerce time objects serialized as Strings before doing the timeoutable comparisons.
...
The comparison only fails on Ruby 1.9.3, when we need to parse it properly back
to a Time instance.
Related to #2930 .
2014-08-05 14:58:27 -03:00
Carlos Antonio da Silva
1d803dd23b
Get rid of extra module for group helpers
...
Just use the existing ClassMethods module which is properly extended
with AS::Concern.
2014-07-10 17:01:26 -03:00
Carlos Antonio da Silva
da01235a20
Fix test that checks for proper configuration of omniauth callback
...
Previously the test was raising an ArgumentError by mistake:
ArgumentError: wrong number of arguments (0 for 1)
actionpack (4.1.4) lib/action_dispatch/routing/route_set.rb:328:in `eval_block'`
The #eval_block method expects a proc/lambda argument that can be
instance_exec'ed, not a real block. In the Rails implementation the block
is passed to #draw, which calls #eval_block internally passing the block
along, but as a Proc argument and not as a block.
Also the error we were raising from #devise_for was a RuntimeError,
changed to the expected ArgumentError. Adding an assertion on top of the
expected message should ensure we won't have this issue again.
This was introduced in 29da146c07 , related
to #2802 .
2014-07-10 08:53:18 -03:00
Vasiliy Ermolovich
9938a5e933
add documentation about skip: :all option to devise_for method
2014-07-06 16:35:51 +03:00
José Valim
2bde395840
Update activatable.rb
2014-06-06 13:03:53 +02:00
José Valim
8b3b3d7955
Merge pull request #3042 from dropletzz/group_helpers
...
Helper methods for groups of mappings
2014-06-06 12:58:44 +02:00
Giovanni Caniato
dfcb342a8f
group methods defined in the current scope
2014-05-28 19:30:03 +02:00
Giovanni Caniato
cb1d6c4684
moved helpers definition from routes to controllers
2014-05-27 11:58:55 +02:00
Giovanni Caniato
8df6a2f38b
added groups with their helper methods
2014-05-26 16:45:18 +02:00
José Valim
395b5c4237
Merge pull request #3011 from dwhenry/make-devise-more-engine-friendly
...
Make devise more engine friendly
2014-05-24 20:20:03 +09:00
Lucas Mazza
08d8591dfd
Merge pull request #3038 from kushkella/non-bang-method-trackable
...
added non-bang version of update_tracked_fields
2014-05-24 00:58:06 -03:00
José Valim
9818038a72
Merge pull request #3029 from randoum/master
...
lock_access! better failure message
2014-05-22 10:20:41 +02:00
Kush Kella
451be888cb
added non-bang version of update_tracked_fields
2014-05-21 16:18:35 -07:00
randoum
d8ee3e49cb
lock_access! better failure message
2014-05-16 05:57:18 +08:00
Jon Phenow
d47c370916
* Allows CSRF cleanup to be turned off for certain strategy types
...
* Defaults Authenticatable CSRF cleanup
2014-05-15 09:16:31 -05:00
Adrian Pacała
a2376d6ca1
Fix Rails 4 detection
2014-05-07 22:17:40 +02:00
Adrian Pacała
fa1a864731
Generate inet columns for Rails 4 only
2014-05-07 09:18:10 +02:00
Adrian Pacała
53504f7e28
Generate inet columns for postgresql
2014-05-07 08:50:21 +02:00
David Henry
c7099ac5b0
Merge branch 'master' of github.com:plataformatec/devise into make-devise-more-engine-friendly
...
Conflicts:
.travis.yml
Gemfile.lock
2014-05-07 00:22:16 +01:00
David Henry
bec913fc07
Clean up the code.
2014-05-06 23:31:59 +01:00
David Henry
1e8e8516f0
Simplify access to router_name using the existing scope lookup.
2014-05-05 23:19:03 +01:00
aditya-kapoor
2fc25a8c68
rename method + remove extra db call
2014-05-06 01:23:55 +05:30
aditya-kapoor
c8fcbde2af
split send_reset_password_instructions into two parts for better hooking
2014-05-05 13:41:08 +05:30
David Henry
3e8fce5081
Make sure I include the new class into the gem
2014-05-04 12:53:25 +01:00
David Henry
d875c01bc2
Extract routing context to its own file.
2014-05-03 23:22:00 +01:00
David Henry
feff27aaee
Add description around the new method.
2014-05-03 22:47:27 +01:00
David Henry
1dd84a8244
Don't couple the routing object to the whole system.. pass around the RoutingDetails object instead.
...
NOTE: RoutingDetails is supposed to be a simple data transfer object.
2014-05-03 22:46:04 +01:00
David Henry
2dee54bc86
make the find_mapping! method return a mapping object
2014-05-03 22:41:32 +01:00
David Henry
23761aded2
Add find_mapping! method to return the router_name instead of overloading find_scope!
2014-05-03 22:37:21 +01:00
David Henry
e085526b6e
Get the logic in the right order and fix variable naming (and run the tests)
2014-05-02 00:22:20 +01:00
David Henry
38b347ac00
Fix bug in the tests
2014-05-02 00:17:17 +01:00
David Henry
9e8371c293
Make after_sign_out_path_for and after_inactive_sign_up_path_for aware of router name if declared in devise_for declaration.
2014-05-01 23:49:46 +01:00
David Henry
da49ed23f9
Start adding code to allow devise_for to specify the engine context (router_name) to be used.
2014-05-01 23:39:05 +01:00
Hao Wei
11c8875479
Update legacy comment
2014-05-01 19:49:37 +08:00
Lucas Mazza
1ad09f9cfc
Improve CHANGELOG and move assignment to outside the if statement.
2014-04-28 11:28:48 -03:00
Maxim Pechnikov
a841e6c4f0
fixed storing location with bad URL
2014-04-25 19:14:32 +04:00
Michael Crismali
f37b10ef87
Switched all instances of 'not blank?' to 'present?'
2014-04-17 20:34:28 -05:00
Ross Kaffenberger
5f32cd25fd
support multiple warden configuration blocks
...
Changes the behavior of `Devise.warden` such that calling it multiple
times with different blocks will result in a call to each block on
`Devise.configure_warden!` rather than "last block wins". This is
especially used for plugins that wish to extend warden functionality
without clobbering base app configuration or vice versa.
2014-04-15 17:20:21 -04:00
Sadjow Leão
a2bd5631da
Use port option in default url options for ActionMailer
2014-04-04 19:01:12 -03:00
Lauro Caetano
f7fdde1ab0
Add the invalidate_all_sessions_on_logout configuration to invalidate
...
all the remember me tokens when the user signs out.
2014-04-04 16:17:26 -03:00