- 12 3月, 2016 1 次提交
-
-
由 Yorick Peterse 提交于
-
- 10 3月, 2016 1 次提交
-
-
由 Jacob Vosmaer 提交于
-
- 01 3月, 2016 3 次提交
-
-
由 Robert Speicher 提交于
Closes #13905
-
由 Robert Speicher 提交于
Rails adds an empty error to the Errors object even if you just call `#[]` on it: ``` [1] pry(main)> u = User.last [2] pry(main)> u.errors.keys => [] [3] pry(main)> u.errors[:username].present? => false [4] pry(main)> u.errors.keys => [:username] ```
-
由 Robert Speicher 提交于
Prior, if the user enabled 2FA, then disabled it and came back some time after the grace period expired, they would be forced to enable 2FA immediately.
-
- 25 2月, 2016 1 次提交
-
-
由 Robert Speicher 提交于
-
- 20 2月, 2016 2 次提交
-
-
- 18 2月, 2016 2 次提交
-
-
由 Johann Pardanaud 提交于
- Avoid multiple calls to `validates` for the avatar attributes. - In a cropping process, don't check if the model inherits `User`, check if it responds to `:avatar_crop_size`.
-
由 Johann Pardanaud 提交于
-
- 10 2月, 2016 3 次提交
-
-
由 Johann Pardanaud 提交于
-
由 Rémy Coutable 提交于
-
由 Rémy Coutable 提交于
Also: - Get rid of legacy :strict_mode - Get rid of custom :email validator - Add some shared examples to spec emails validation
-
- 02 2月, 2016 2 次提交
-
-
-
由 Stan Hu 提交于
Currently any spam detected by Akismet by non-members via API will be logged in a separate table in the admin page. Closes #5612
-
- 23 1月, 2016 1 次提交
-
-
由 Rubén Dávila 提交于
-
- 21 1月, 2016 1 次提交
-
-
由 Rubén Dávila 提交于
-
- 19 1月, 2016 1 次提交
-
-
由 Douwe Maan 提交于
-
- 14 1月, 2016 1 次提交
-
-
由 Gabriel Mazetto 提交于
-
- 09 1月, 2016 2 次提交
-
-
由 Gabriel Mazetto 提交于
-
由 Gabriel Mazetto 提交于
-
- 06 1月, 2016 1 次提交
-
-
由 Stan Hu 提交于
-
- 03 1月, 2016 1 次提交
-
-
由 Robert Speicher 提交于
Closes #201 - two-year-old bug, woo!
💥 🎉
-
- 15 12月, 2015 2 次提交
-
-
由 Gabriel Mazetto 提交于
-
由 Drew Blessing 提交于
-
- 12 12月, 2015 2 次提交
-
-
由 Kamil Trzcinski 提交于
-
由 Kamil Trzcinski 提交于
-
- 11 12月, 2015 1 次提交
-
-
由 Grzegorz Bizon 提交于
This adds a ability to use multiple different authentication token fields in other models. From now on it is necessary to add authentication token field manually in each class that implements this mixin.
-
- 09 12月, 2015 1 次提交
-
-
由 Stan Hu 提交于
-
- 08 12月, 2015 1 次提交
-
-
由 Robert Speicher 提交于
-
- 03 12月, 2015 1 次提交
-
-
由 Valery Sizov 提交于
-
- 02 12月, 2015 1 次提交
-
-
由 Valery Sizov 提交于
-
- 19 11月, 2015 1 次提交
-
-
由 Yorick Peterse 提交于
-
- 18 11月, 2015 7 次提交
-
-
由 Yorick Peterse 提交于
This won't work efficiently if you happen to have a lot of projects.
-
由 Yorick Peterse 提交于
These changes are based on those from commit 03f5ff75, except they use a UNION instead of plucking IDs into memory.
-
由 Yorick Peterse 提交于
These methods no longer include public groups/projects (that don't belong to the actual user) as this is handled by the various finder classes now. This also removes the need for passing extra arguments. Note that memoizing was removed _explicitly_. For whatever reason doing so messes up the users controller to a point where it claims a certain user does _not_ have access to certain groups/projects when it does have access. Existing code shouldn't be affected as these methods are only called in ways that they'd run queries anyway (e.g. a combination of "any?" and "each" which would run 2 queries regardless of memoizing).
-
由 Yorick Peterse 提交于
This new setup no longer loads any IDs into memory using "pluck", instead using SQL UNIONs to merge the various datasets together. This results in greatly improved query performance as well as a reduction of memory usage. The old setup was in particular problematic when requesting the authorized projects _including_ public/internal projects as this would result in roughly 65000 project IDs being loaded into memory. These IDs would in turn be passed to other queries.
-
由 Yorick Peterse 提交于
-
由 Yorick Peterse 提交于
This removes the need for plucking any IDs into Ruby.
-
由 Yorick Peterse 提交于
This allows retrieving of the list of authorized projects using a single query, without having to load any IDs into Ruby. This in turn also means we can remove the method User#authorized_projects_id.
-