Revert "Fix build for real"

This reverts commit 43f32c868a.
This commit is contained in:
José Valim 2012-05-17 19:16:11 +02:00
parent 56b61b1532
commit 7a093afd03

View File

@ -27,8 +27,13 @@ module Rails
def parent_class_name
if options[:parent]
options[:parent]
else
# Only works on 3.2
# elsif (n = Rails::Generators.namespace) && n.const_defined?(:ApplicationSerializer)
# "ApplicationSerializer"
elsif defined?(::ApplicationSerializer)
"ApplicationSerializer"
else
"ActiveModel::Serializer"
end
end
end