mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
Fix build for real
This commit is contained in:
parent
c6b1cea4bc
commit
43f32c868a
@ -27,13 +27,8 @@ module Rails
|
|||||||
def parent_class_name
|
def parent_class_name
|
||||||
if options[:parent]
|
if options[:parent]
|
||||||
options[:parent]
|
options[:parent]
|
||||||
# Only works on 3.2
|
|
||||||
# elsif (n = Rails::Generators.namespace) && n.const_defined?(:ApplicationSerializer)
|
|
||||||
# "ApplicationSerializer"
|
|
||||||
elsif defined?(::ApplicationSerializer)
|
|
||||||
"ApplicationSerializer"
|
|
||||||
else
|
else
|
||||||
"ActiveModel::Serializer"
|
"ApplicationSerializer"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user