1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/lib/active_vault/railtie.rb

19 lines
483 B
Ruby

require "rails/railtie"
module ActiveVault
class Railtie < Rails::Railtie # :nodoc:
config.action_file = ActiveSupport::OrderedOptions.new
config.eager_load_namespaces << ActiveVault
initializer "action_file.routes" do
require "active_vault/disk_controller"
config.after_initialize do |app|
app.routes.prepend do
get "/rails/blobs/:encoded_key" => "active_vault/disk#show", as: :rails_disk_blob
end
end
end
end
end