mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
All the attr_readers together
This commit is contained in:
parent
1c3f14407c
commit
cd9e106640
@ -45,7 +45,7 @@ module ActiveModel
|
||||
|
||||
private
|
||||
|
||||
attr_reader :object, :embed, :embed_key, :serializer
|
||||
attr_reader :object, :embed, :embed_key, :serializer, :options, :serializer_options
|
||||
|
||||
def find_serializable(object)
|
||||
if serializer
|
||||
@ -56,8 +56,6 @@ module ActiveModel
|
||||
object
|
||||
end
|
||||
end
|
||||
|
||||
attr_reader :options, :serializer_options
|
||||
end
|
||||
|
||||
class HasMany < Base #:nodoc:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user