mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-23 22:36:50 +00:00
Allow other resource overrides
This commit is contained in:
parent
00194ec0e4
commit
615afd125c
@ -1,5 +1,5 @@
|
|||||||
module ActiveModel
|
module ActiveModel
|
||||||
class Serializer
|
class Serializer
|
||||||
VERSION = "0.5.1"
|
VERSION = "0.5.2"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@ -11,6 +11,7 @@ if defined?(Rails)
|
|||||||
app ||= Rails.application # Rails 3.0.x does not yield `app`
|
app ||= Rails.application # Rails 3.0.x does not yield `app`
|
||||||
|
|
||||||
Rails::Generators.configure!(app.config.generators)
|
Rails::Generators.configure!(app.config.generators)
|
||||||
|
Rails::Generators.hidden_namespaces.uniq!
|
||||||
require "generators/resource_override"
|
require "generators/resource_override"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user