lib/roda/plugins/dry_view.rb in dry-web-roda-0.8.0 vs lib/roda/plugins/dry_view.rb in dry-web-roda-0.9.0
- old
+ new
@@ -1,25 +1,18 @@
class Roda
module RodaPlugins
module DryView
def self.load_dependencies(app)
- app.plugin :csrf
- app.plugin :flash
app.plugin :flow
end
module InstanceMethods
def view_context
self.class["view.context"].with(view_context_options)
end
def view_context_options
- {
- flash: flash,
- csrf_token: Rack::Csrf.token(request.env),
- csrf_metatag: Rack::Csrf.metatag(request.env),
- csrf_tag: Rack::Csrf.tag(request.env),
- }
+ {}
end
end
module RequestMethods
def view(name, options = {})