lib/ditty/controllers/component_controller.rb in ditty-0.10.1 vs lib/ditty/controllers/component_controller.rb in ditty-0.10.2

- old
+ new

@@ -5,9 +5,11 @@ require 'ditty/helpers/response' require 'sinatra/json' module Ditty class ComponentController < ApplicationController + use Rack::Csrf, raise: ENV['APP_ENV'] == 'development' unless ENV['APP_ENV'] == 'test' + helpers Helpers::Component, Helpers::Response set base_path: nil set dehumanized: nil set view_location: nil