Sha256: c5f1f481f7c216dfb97e3f3880a6e49be4f2a1998e06a5c1c3b611756fbbdf71
Contents?: true
Size: 510 Bytes
Versions: 9
Compression:
Stored size: 510 Bytes
Contents
# encoding: utf-8 require 'warden/declarable' module Warden module Serializers extend Warden::Declarable class << self def check_validity!(label, serializer) [:fetch, :store, :stored?, :delete].each do |method| next if serializer.method_defined?(method) raise NoMethodError, "#{method} is not declared in the #{label.inspect} serializer" end end alias :_serializers :_declarations end # << self end # Serializers end # Warden
Version data entries
9 entries across 9 versions & 1 rubygems