diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2018-11-30 06:16:40 +0300 |
---|---|---|
committer | Heinrich Lee Yu <hleeyu@gmail.com> | 2018-12-19 12:58:53 +0300 |
commit | 199a4db2c4854b101370970546637c0d68e0b854 (patch) | |
tree | 4989028824595375ef0d2de4aea111e650e86ceb /app/serializers/issuable_sidebar_entity.rb | |
parent | ddb1d326e06cc40d87b8eaa40aab7019447d6e5e (diff) |
Add schema tests
Diffstat (limited to 'app/serializers/issuable_sidebar_entity.rb')
-rw-r--r-- | app/serializers/issuable_sidebar_entity.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/issuable_sidebar_entity.rb b/app/serializers/issuable_sidebar_entity.rb index 11666049959..86210db4ef3 100644 --- a/app/serializers/issuable_sidebar_entity.rb +++ b/app/serializers/issuable_sidebar_entity.rb @@ -12,7 +12,7 @@ class IssuableSidebarEntity < Grape::Entity expose :project_id do |issuable| issuable.project.id end - expose :discussion_locked?, as: :discussion_locked + expose :discussion_locked expose :reference do |issuable| issuable.to_reference(issuable.project, full: true) end |