Sha256: be971373c5160b62b30bf185e91c12bd81af456d76c6824dccd40ce755f5e41c

Contents?: true

Size: 961 Bytes

Versions: 1

Compression:

Stored size: 961 Bytes

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; class Self
# Set: The card "Admin"
#
module Admin;
extend Card::Set
def self.source_location; "/Users/ezl5238/dev/decko/gem/mod/carrierwave/set/self/admin.rb"; end
add_to_basket(
  :tasks,
  name: :update_file_storage_locations,
  execute_policy: -> { Card.update_all_storage_locations },
  stats: {
    title: "cards with attachment",
    count: -> { Card.count_cards_with_attachment }
    # link_text: "update storage locations",
    # task: "update_file_storage_locations"
  }
)

add_to_basket(
  :tasks,
  name: :delete_upload_tmp_files,
  execute_policy: -> { Card.delete_tmp_files_of_cached_uploads },
  stats: {
    title: "tmp files of canceled uploads",
    count: -> { ::Card.draft_actions_with_attachment },
    link_text: "delete tmp files",
    task: "delete_tmp_files_of_cached_uploads"
  }
)
end;end;end;end;
# ~~ generated from /Users/ezl5238/dev/decko/gem/mod/carrierwave/set/self/admin.rb ~~

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
card-1.102.0 tmpsets/set/mod013-carrierwave/self/admin.rb