Sha256: 68a486b7d07eb28fa46436c839198adb1b96267fcf0a1357b1a38987a8e904fa
Contents?: true
Size: 839 Bytes
Versions: 3
Compression:
Stored size: 839 Bytes
Contents
module Crystal module AbstractController module Micelaneous # # respond_to # def respond_to &block @_responder.must_be.nil @_responder = Responder.new block.call @_responder handler = @_responder.handlers[params.format] raise "Can't respond to #{params.format} format!" unless handler handler.call end module ClassMethods # # filter_parameter_logging # inheritable_accessor :filter_parameter_logging, [] def filter_parameter_logging_with_sugar *parameters if parameters.empty? filter_parameter_logging_without_sugar else filter_parameter_logging_without_sugar.push *parameters.collect(&:to_s) end end end end end end
Version data entries
3 entries across 3 versions & 2 rubygems