Skip to content

Commit

Permalink
Merge bb33cf3 into 39b2a2b
Browse files Browse the repository at this point in the history
  • Loading branch information
fab committed Dec 3, 2013
2 parents 39b2a2b + bb33cf3 commit dcff025
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def parent_class_name
if options[:parent]
options[:parent]
elsif (ns = Rails::Generators.namespace) && ns.const_defined?(:ApplicationSerializer) ||
defined?(::ApplicationSerializer)
(Object.const_get(:ApplicationSerializer) rescue nil)
'ApplicationSerializer'
else
'ActiveModel::Serializer'
Expand Down

0 comments on commit dcff025

Please sign in to comment.