Sha256: a1188fc0084f741e8b2599cd7e3fc6353d12086fc2e570aa59caf0539726f5d2

Contents?: true

Size: 481 Bytes

Versions: 138

Compression:

Stored size: 481 Bytes

Contents

module ActiveRecord #:nodoc:
  # = Active Record Serialization
  module Serialization
    extend ActiveSupport::Concern
    include ActiveModel::Serializers::JSON

    def serializable_hash(options = nil)
      options = options.try(:clone) || {}

      options[:except] = Array.wrap(options[:except]).map { |n| n.to_s }
      options[:except] |= Array.wrap(self.class.inheritance_column)

      super(options)
    end
  end
end

require 'active_record/serializers/xml_serializer'

Version data entries

138 entries across 107 versions & 14 rubygems

Version Path
fc-webicons-0.0.1 vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/serialization.rb
activerecord-3.2.13 lib/active_record/serialization.rb
activerecord-3.2.13.rc2 lib/active_record/serialization.rb
activerecord-3.2.13.rc1 lib/active_record/serialization.rb
active_mailer-0.0.5 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/serialization.rb
active_mailer-0.0.4 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/serialization.rb
active_mailer-0.0.3 test/fixtures/dummyapp_rails_3.2/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.12/lib/active_record/serialization.rb
activerecord-3.2.12 lib/active_record/serialization.rb
challah-0.9.1.beta.3 vendor/bundle/gems/activerecord-3.2.11/lib/active_record/serialization.rb
devise_sociable-0.1.0 vendor/bundle/gems/activerecord-3.2.11/lib/active_record/serialization.rb
challah-0.9.1.beta vendor/bundle/gems/activerecord-3.2.11/lib/active_record/serialization.rb
activerecord-3.2.11 lib/active_record/serialization.rb
sunrise-cms-0.5.0.rc1 vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.10/lib/active_record/serialization.rb
challah-0.9.0 vendor/bundle/gems/activerecord-3.2.9/lib/active_record/serialization.rb
activerecord-3.2.10 lib/active_record/serialization.rb
challah-rolls-0.2.0 vendor/bundle/gems/activerecord-3.2.9/lib/active_record/serialization.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/activerecord-3.2.7/lib/active_record/serialization.rb
challah-rolls-0.2.0 vendor/bundle/gems/activerecord-3.2.8/lib/active_record/serialization.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/activerecord-3.2.8/lib/active_record/serialization.rb
challah-rolls-0.2.0 vendor/bundle/gems/activerecord-3.2.7/lib/active_record/serialization.rb