blob: 6a221480400e471a13e266dcbd5f29259aef4d7f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
require "rails/railtie"
module ActiveFile
class Railtie < Rails::Railtie # :nodoc:
config.action_cable = ActiveSupport::OrderedOptions.new
config.eager_load_namespaces << ActiveFile
initializer "action_cable.routes" do
require "active_file/disk_controller"
config.after_initialize do |app|
app.routes.prepend do
get "/rails/blobs/:encoded_key" => "active_file/disk#show", as: :rails_disk_blob
end
end
end
end
end
|