gitlab-org--gitlab-foss/app/models/concerns
Timothy Andrew e805a64700 Backport changes from gitlab-org/gitlab-ee!581 to CE.
!581 has a lot of changes that would cause merge conflicts if not
properly backported to CE. This commit/MR serves as a better
foundation for gitlab-org/gitlab-ee!581.

= Changes =

1. Move from `has_one {merge,push}_access_level` to `has_many`, with the
   `length` of the association limited to `1`. This is _effectively_ a
   `has_one` association, but should cause less conflicts with EE, which
   is set to `has_many`. This has a number of related changes in the
   views, specs, and factories.

2. Make `gon` variable loading more consistent (with EE!581) in the
   `ProtectedBranchesController`. Also use `::` to prefix the
   `ProtectedBranches` services, because this is required in EE.

3. Extract a `ProtectedBranchAccess` concern from the two access level
   models. This concern only has a single `humanize` method here, but
   will have more methods in EE.

4. Add `form_errors` to the protected branches creation form. This is
   not strictly required for EE compatibility, but was an oversight
   nonetheless.
2016-08-16 11:05:14 +05:30
..
access_requestable.rb UI and copywriting improvements 2016-06-14 13:18:14 +02:00
awardable.rb Fix not normalized emoji paths 2016-07-14 08:51:00 +02:00
case_sensitivity.rb
faster_cache_keys.rb Added concern for a faster "cache_key" method 2016-08-08 16:49:22 +02:00
importable.rb started refactoring some stuff based on MR feedback 2016-06-01 18:03:51 +02:00
internal_id.rb Use GitHub Issue/PR number as iid to keep references 2016-04-18 12:15:50 -03:00
issuable.rb Reduce number of queries made for merge_requests/:id/diffs 2016-07-28 16:52:19 +02:00
mentionable.rb Use cattr_accessor instead duplicating code on NoteOnDiff concern 2016-07-15 13:49:16 -03:00
milestoneish.rb Use a better message when milestone is newly created 2016-04-29 10:15:49 +01:00
note_on_diff.rb Add Discussion model to represent MR/diff discussion 2016-07-20 16:18:18 -06:00
participable.rb Use cattr_accessor instead duplicating code on NoteOnDiff concern 2016-07-15 13:49:16 -03:00
protected_branch_access.rb Backport changes from gitlab-org/gitlab-ee!581 to CE. 2016-08-16 11:05:14 +05:30
referable.rb Fix RangeError exceptions when referring to issues or merge requests outside of max database values 2016-06-18 13:07:38 -07:00
sortable.rb Sort by ID when sorting using "Recently created" 2016-01-07 14:53:02 +01:00
spammable.rb Further refactor and syntax fixes. 2016-08-15 17:20:57 -05:00
statuseable.rb Pre-create all builds for Pipeline when a trigger is received 2016-08-11 15:22:35 +02:00
strip_attribute.rb
subscribable.rb Add API endpoints for un/subscribing from/to a label 2016-05-12 22:48:09 +02:00
taskable.rb
token_authenticatable.rb Enable Rubocop cops for invalid access modifiers 2016-07-19 15:12:15 +02:00