Sha256: 6534b49bbfcc85a7e228c5bfdf9a272946eda8f89a5fd322202f24a95b73f083

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

require 'rails/railtie'
module ActiveModel
  class Railtie < Rails::Railtie
    initializer 'active_model_serializers.logger' do
      ActiveSupport.on_load(:action_controller) do
        ActiveModelSerializers.logger = ActionController::Base.logger
      end
    end

    initializer 'generators' do |app|
      app.load_generators
      require 'generators/serializer/resource_override'
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
active_model_serializers-0.10.0.rc3 lib/active_model/serializer/railtie.rb