Skip to content

Commit

Permalink
Remove serve_public_dir -- it's not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
eviltrout committed Jul 28, 2017
1 parent 9a76559 commit 43fd90b
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/plugin/instance.rb
Expand Up @@ -73,19 +73,6 @@ def enabled?

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

Expand Down

0 comments on commit 43fd90b

Please sign in to comment.