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