Age | Commit message (Collapse) | Author |
|
that's what it does. Changed all tests to use it instead of the attributes method
|
|
This allows us to reuse add_email from email_aliases_attributes=
|
|
|
|
nor aliases that are the same as the original email for that matter
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* unit tests draft
* controller draft
|
|
|
|
Just a very simple start for now.
Do we want to use the api for the secure remote password auth from js?
|
|
|
|
|
|
I also tried flash.keep(:notice) but that did not help - not sure how to keep the flash until the root url has rendered.
|
|
|
|
|
|
creating and editing users differ so much now it's not worth reusing the complex user_form_with for the signup.
|
|
password requires ajax for secure remote password to work
|
|
|
|
This version has basic user and help tickets management
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
find_record User will return a stubbed user record and make sure User.find_by_id(user.id) returns the same so it can be used in controllers.
|
|
|
|
|
|
|
|
I changed the permissions a little to be more consistent.
Now:
* admins can edit users
* users can destroy themselves.
There's no ui for either of them but theoretically they could. Not sure this is what we want though.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Also added #assert_json_error to tests.
|
|
|
|
|
|
|
|
|
|
|
|
|