mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-25 15:23:06 +00:00
Allow users to opt-out from the ActionController extensions
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user