summaryrefslogtreecommitdiff
path: root/app/models/page.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/page.rb')
-rw-r--r--app/models/page.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/page.rb b/app/models/page.rb
index ca3a8be..67db50a 100644
--- a/app/models/page.rb
+++ b/app/models/page.rb
@@ -12,9 +12,9 @@ class Page < ApplicationRecord
12 translates :title, :abstract, :body # Globalize2 12 translates :title, :abstract, :body # Globalize2
13 13
14 # Associations 14 # Associations
15 belongs_to :node 15 belongs_to :node, optional: true
16 belongs_to :user 16 belongs_to :user, optional: true
17 belongs_to :editor, :class_name => "User" 17 belongs_to :editor, :class_name => "User", optional: true
18 has_many :related_assets 18 has_many :related_assets
19 has_many :assets, -> { order("position ASC") }, :through => :related_assets 19 has_many :assets, -> { order("position ASC") }, :through => :related_assets
20 20