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

remove tests

parent aaf48d24
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,24 +86,6 @@ class Communication::Website::Page < ApplicationRecord
scope :recent, -> { order(updated_at: :desc).limit(5) }
scope :published, -> { where(published: true) }
### 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(/\/+/, '/')
end
......
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