Sha256: f56eb2ed22d2ad68ada0e16e5a19cf430f08cd650fc94cc33ee8b5b49ba76186
Contents?: true
Size: 782 Bytes
Versions: 1
Compression:
Stored size: 782 Bytes
Contents
require 'logger' require 'active_model' require 'active_support/railtie' require 'action_controller' require 'action_controller/railtie' module ActiveModelSerializers mattr_accessor :logger self.logger = Rails.logger || Logger.new(IO::NULL) module_function def silence_warnings verbose = $VERBOSE $VERBOSE = nil yield ensure $VERBOSE = verbose end end require 'active_model/serializer' require 'active_model/serializable_resource' require 'active_model/serializer/version' require 'action_controller/serialization' ActiveSupport.on_load(:action_controller) do include ::ActionController::Serialization ActionDispatch::Reloader.to_prepare do ActiveModel::Serializer.serializers_cache.clear end end require 'active_model/serializer/railtie'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_model_serializers-0.10.0.rc3 | lib/active_model_serializers.rb |