bus/app/models/concerns/ruling_bus_concern.rb

8 lines
274 B
Ruby

module RulingBusConcern
extend ActiveSupport::Concern
included do
end
def delete_page_cache_custom
PageCacheModel.where(:page_id.in=>PagePart.where(:id.in=>SubPart.where(:module=>'ruling_bus').pluck(:page_part_id)).pluck(:page_id)).delete
end
end