Skip to content

Commit

Permalink
Require _our_ resource_override.
Browse files Browse the repository at this point in the history
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
steveklabnik committed Apr 4, 2013
1 parent 9551a97 commit 2edaa22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/active_model_serializers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit 2edaa22

Please sign in to comment.