Class: Dragonfly::Middleware
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app, dragonfly_app_name, deprecated_arg = nil) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app, dragonfly_app_name, deprecated_arg = nil) ⇒ Middleware
Returns a new instance of Middleware.
4 5 6 7 8 |
# File 'lib/dragonfly/middleware.rb', line 4 def initialize(app, dragonfly_app_name, deprecated_arg=nil) raise ArgumentError, "mounting Dragonfly::Middleware with a mount point is deprecated - just use Dragonfly::Middleware, #{dragonfly_app_name.inspect}" if deprecated_arg @app = app @dragonfly_app_name = dragonfly_app_name end |