Sha256: 7f8d419b660ed766a786bd43686be05a50d747ec1fa448e981dfbf338dc0c3de

Contents?: true

Size: 446 Bytes

Versions: 5

Compression:

Stored size: 446 Bytes

Contents

require 'devise/strategies/base'

module Devise
  module Serializers
    module Base
      include Devise::Strategies::Base
      attr_reader :scope

      def serialize(record)
        record.class.send(:"serialize_into_#{klass_type}", record)
      end

      def deserialize(keys)
        mapping.to.send(:"serialize_from_#{klass_type}", keys)
      end

      def fetch(scope)
        @scope = scope
        super
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
devise-0.8.2 lib/devise/serializers/base.rb
devise-0.8.1 lib/devise/serializers/base.rb
devise-0.8.0 lib/devise/serializers/base.rb
devise-0.7.5 lib/devise/serializers/base.rb
devise-0.7.4 lib/devise/serializers/base.rb