We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 170db3b commit 47a14b6Copy full SHA for 47a14b6
lib/action_controller/serialization.rb
@@ -10,6 +10,12 @@ module Serialization
10
# Deprecated
11
ADAPTER_OPTION_KEYS = ActiveModel::SerializableResource::ADAPTER_OPTION_KEYS
12
13
+ module ClassMethods
14
+ def serialization_scope(scope)
15
+ self._serialization_scope = scope
16
+ end
17
18
+
19
included do
20
class_attribute :_serialization_scope
21
self._serialization_scope = :current_user
@@ -59,11 +65,5 @@ def use_adapter?
59
65
super(serializable_resource, options)
60
66
end
61
67
62
-
63
- module ClassMethods
64
- def serialization_scope(scope)
- self._serialization_scope = scope
- end
68
69
0 commit comments