Group methods related to text generation for GraphQL documentation into a module

This commit is contained in:
Alberto Miedes Garcés
2017-01-26 10:47:12 +01:00
parent e7f55b10e2
commit 83267330a7
10 changed files with 51 additions and 6 deletions

View File

@@ -1,4 +1,7 @@
class ProposalNotification < ActiveRecord::Base
include Graphqlable
belongs_to :author, class_name: 'User', foreign_key: 'author_id'
belongs_to :proposal