From b99a6350cca29ac7ca8331623f7e1106c8f1a47a Mon Sep 17 00:00:00 2001 From: elliotlarson Date: Fri, 31 Jul 2015 12:51:57 -0700 Subject: [PATCH] only require railtie if Rails is present --- lib/active_model_serializers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/active_model_serializers.rb b/lib/active_model_serializers.rb index 69bafdaf2..211a2870e 100644 --- a/lib/active_model_serializers.rb +++ b/lib/active_model_serializers.rb @@ -2,10 +2,10 @@ require 'active_model/serializer/version' require 'active_model/serializer' require 'active_model/serializer/fieldset' -require 'active_model/serializer/railtie' require 'active_model/serializable_resource' begin + require 'active_model/serializer/railtie' require 'action_controller' require 'action_controller/serialization'