Allow users to opt-out from the ActionController extensions

This commit is contained in:
Jean Boussier
2014-08-14 10:28:36 -04:00
parent 7e7d8a721c
commit 0d31e72d22
2 changed files with 9 additions and 2 deletions

View File

@@ -29,6 +29,11 @@ module ActionController
include ActionController::Renderers
class << self
attr_accessor :enabled
end
self.enabled = true
included do
class_attribute :_serialization_scope
self._serialization_scope = :current_user