Skip to content
Snippets Groups Projects
Commit aaf48d24 authored by pabois's avatar pabois
Browse files

try remove sync from pages

parent ee3d01b5
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ class Communication::Website::Page < ApplicationRecord
include WithUniversity
include WithBlobs
include WithBlocks
include WithGit
# include WithGit
include WithFeaturedImage
include WithKind
include WithMenuItemTarget
......@@ -86,8 +86,23 @@ class Communication::Website::Page < ApplicationRecord
scope :recent, -> { order(updated_at: :desc).limit(5) }
scope :published, -> { where(published: true) }
def sync_with_git
### TODO: test ram
def save_and_sync
if save
true
else
false
end
end
def update_and_sync(params)
if update(params)
true
else
false
end
end
### end todo
def generated_path
"#{parent&.path}#{slug}/".gsub(/\/+/, '/')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment