Sha256: 0c0534e8fba2afb169b3ec9dadd823952592a40a6222dbb02ba12c4aa0a7b7f0

Contents?: true

Size: 619 Bytes

Versions: 6

Compression:

Stored size: 619 Bytes

Contents

module ActiveModelSerializers
  module_function

  def silence_warnings
    verbose = $VERBOSE
    $VERBOSE = nil
    yield
  ensure
    $VERBOSE = verbose
  end

end

require 'active_model'
require 'action_controller'

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

6 entries across 6 versions & 1 rubygems

Version Path
cheap_ams-0.10.5 lib/active_model_serializers.rb
cheap_ams-0.10.4 lib/active_model_serializers.rb
cheap_ams-0.10.3 lib/active_model_serializers.rb
cheap_ams-0.10.2 lib/active_model_serializers.rb
cheap_ams-0.10.1 lib/active_model_serializers.rb
cheap_ams-0.10.0.rc2 lib/active_model_serializers.rb