app/serializers/alchemy/page_serializer.rb in alchemy_cms-5.3.0 vs app/serializers/alchemy/page_serializer.rb in alchemy_cms-5.3.1
- old
+ new
@@ -12,10 +12,16 @@
:meta_description,
:tag_list,
:created_at,
:updated_at,
:status,
- :url_path
+ :url_path,
+ :parent_id
has_many :elements
+
+ with_options if: -> { scope.can?(:edit_content, object) } do
+ belongs_to :site
+ belongs_to :language
+ end
end
end