Remove serve_public_dir -- it's not needed
This commit is contained in:
parent
9a76559345
commit
43fd90b2da
|
@ -73,19 +73,6 @@ class Plugin::Instance
|
|||
|
||||
delegate :name, to: :metadata
|
||||
|
||||
def serve_public_dir
|
||||
public_dir = "#{directory}/public"
|
||||
if File.exist?(public_dir)
|
||||
Rails.application.config.before_initialize do |app|
|
||||
app.middleware.insert_before(
|
||||
::Rack::Runtime,
|
||||
::ActionDispatch::Static,
|
||||
public_dir
|
||||
)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def add_to_serializer(serializer, attr, define_include_method = true, &block)
|
||||
klass = "#{serializer.to_s.classify}Serializer".constantize rescue "#{serializer.to_s}Serializer".constantize
|
||||
|
||||
|
|
Loading…
Reference in New Issue