bmizerany / sinatra

(offically at github.com/sinatra/sinatra) Classy web-development dressed in a DSL

Home Page:http://sinatra.github.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please consider renaming public to public_dir as it hides the public method in Module

krisselden opened this issue · comments

I'm trying to decorate the error method as follows:

alias_method_chain :error, :formatting

but this is failing here:

def alias_method_chain(target, feature)
...
case
when public_method_defined?(without_method)

public target
...
end

because of:

set :public, Proc.new { root && File.join(root, 'public') }

This is not the active Sinatra repository, it is here now: http://github.com/sinatra/sinatra