lib/capcode/render/static.rb in capcode-render-static-0.1.0 vs lib/capcode/render/static.rb in capcode-render-static-0.2.0
- old
+ new
@@ -1,10 +1,10 @@
module Capcode
module Helpers
def render_static( f, opts = {} ) #:nodoc:
# Update options
opts = { :exact_path => true }.merge(opts)
- opts = (Capcode.options[:static] || {}).merge(opts)
+ opts = (Capcode::Configuration.options[:static] || {}).merge(opts)
# Update Content-Type
@response['Content-Type'] = opts[:content_type] if opts.keys.include?(:content_type)
# Path with ".." not allowed
\ No newline at end of file