Sha256: 00429d2a65845bc004b88eb7796f868665eb914a5aa73256020ee76d5424362d
Contents?: true
Size: 642 Bytes
Versions: 5
Compression:
Stored size: 642 Bytes
Contents
module ActiveModel class Railtie < Rails::Railtie initializer 'generators' do |app| app.load_generators require 'active_model/serializer/generators/serializer/serializer_generator' require 'active_model/serializer/generators/serializer/scaffold_controller_generator' require 'active_model/serializer/generators/resource_override' end initializer 'include_routes.active_model_serializer' do |app| ActiveSupport.on_load(:active_model_serializers) do include app.routes.url_helpers end end end end ActiveSupport.run_load_hooks(:active_model_serializers, ActiveModel::Serializer)
Version data entries
5 entries across 5 versions & 1 rubygems