Remove serve_public_dir -- it's not needed

This commit is contained in:
Robin Ward 2017-07-28 13:44:38 -04:00
parent 9a76559345
commit 43fd90b2da
1 changed files with 0 additions and 13 deletions

View File

@ -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