Sha256: 179e804e9d93e150e4c7c1da41c262eacdf281ddb1112294431610ffcee54ebe
Contents?: true
Size: 626 Bytes
Versions: 5
Compression:
Stored size: 626 Bytes
Contents
# encoding: UTF-8 require 'rack' module Spontaneous::Plugins::Page module SiteTimestamps extend ActiveSupport::Concern def after_update ::Spontaneous::State.site_modified! if field?(title_field) && fields[title_field].modified? super end # Update the Site's modification time to force clients # to reload their map data def after_create ::Spontaneous::State.site_modified! super end # Update the Site's modification time to force clients # to reload their map data def after_destroy ::Spontaneous::State.site_modified! super end end end
Version data entries
5 entries across 5 versions & 1 rubygems