Sha256: 89c68cd06987e77a6ae12360b1837b0d2d1bc7563fbef61ca60295eb765f4d75
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
# -*- encoding : utf-8 -*- class Card; module Set; module Self; module All; extend Card::Set # ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/05_standard/set/self/all.rb ~~~~~~~~~~~ event :admin_tasks, on: :update, before: :approve do if task = Env.params[:task] if Auth.always_ok? case task.to_sym when :clear_cache ; Card::Cache.reset_global; Card::ViewCache.reset when :repair_references ; Card::Reference.repair_all when :empty_trash ; Card.empty_trash when :clear_view_cache ; Card::ViewCache.reset when :delete_old_revisions ; Card::Action.delete_old when :delete_old_sessions if months = Env.params[:months].to_i and months > 0 ActiveRecord::SessionStore::Session.delete_all ["updated_at < ?", months.months.ago] end end Env.params[:success] = Card[:stats].name abort :success else raise Card::PermissionDenied.new(self) end end end # ~~~~~~~~~~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/05_standard/set/self/all.rb ~~~~~~~~~~~ end;end;end;end;
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
card-1.16.9 | tmpsets/set/mod007-05_standard/self/all.rb |
card-1.16.8 | tmpsets/set/mod007-05_standard/self/all.rb |
card-1.16.7 | tmpsets/set/mod007-05_standard/self/all.rb |