Sha256: ad90cd11bd53688e182d78b12f9cc601524714b1d451efff0b82209567e7795e
Contents?: true
Size: 761 Bytes
Versions: 3
Compression:
Stored size: 761 Bytes
Contents
# frozen_string_literal: true 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 config.to_prepare do ActiveModel::Serializer.serializers_cache.clear end end end ActiveSupport.run_load_hooks(:active_model_serializers, ActiveModel::Serializer)
Version data entries
3 entries across 3 versions & 1 rubygems