-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplugin.rb
35 lines (26 loc) · 964 Bytes
/
plugin.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# name: long-updated-at
# about: poppo
# version: 1.0.0
# authors: Devinterface Srl
# url: https://code.devinterface.com/AssoImprese/discourse-attachments-plugin.git
# add_admin_route 'attachments.title', 'attachments'
# Discourse::Application.routes.append do
# get "/admin/plugins/attachments" => "admin/attachments#index"
# get "/admin/attachments" => "admin/attachments#index"
# end
after_initialize do
module ::LongUpdatedAt
PLUGIN_NAME ||= "long-updated-at"
class Engine < ::Rails::Engine
engine_name PLUGIN_NAME
isolate_namespace LongUpdatedAt
end
class Error < StandardError
end
end
# require_relative "app/controllers/admin/attachments_controller.rb"
# require_relative "app/lib/upload_index_query.rb"
# require_relative "app/serializers/target_serializer.rb"
# require_relative "app/serializers/upload_references_serializer.rb"
# require_relative "app/serializers/upload_list_serializer.rb"
end