Permalink
Browse files

Require _our_ resource_override.

Basically, when anyone else made a 'resource_override' generator,
it'd only require once. Because that's how require works. So let's make
sure that we require ours and nobody else's.

Fixes #251.
  • Loading branch information...
1 parent 9551a97 commit 2edaa22605af027c8efbac2040160fbfc93f5541 @steveklabnik steveklabnik committed Apr 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/active_model_serializers.rb
@@ -15,7 +15,7 @@ class Railtie < Rails::Railtie
Rails::Generators.configure!(app.config.generators)
Rails::Generators.hidden_namespaces.uniq!
- require "generators/resource_override"
+ require_relative "generators/resource_override"
end
initializer "include_routes.active_model_serializer" do |app|

0 comments on commit 2edaa22

Please sign in to comment.