mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 06:16:50 +00:00
Merge pull request #1467 from dgynn/pr_configure_generators
Ensure that generators get configured correctly
This commit is contained in:
commit
790efee9c3
@ -24,7 +24,9 @@ module ActiveModelSerializers
|
|||||||
ActiveModelSerializers.config.perform_caching = Rails.configuration.action_controller.perform_caching
|
ActiveModelSerializers.config.perform_caching = Rails.configuration.action_controller.perform_caching
|
||||||
end
|
end
|
||||||
|
|
||||||
generators do
|
generators do |app|
|
||||||
|
Rails::Generators.configure!(app.config.generators)
|
||||||
|
Rails::Generators.hidden_namespaces.uniq!
|
||||||
require 'generators/rails/resource_override'
|
require 'generators/rails/resource_override'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user