Sha256: 924092f92872721d2384c923dd4dee35f6a7c8b717e4b203b74be6cb68059888

Contents?: true

Size: 837 Bytes

Versions: 1

Compression:

Stored size: 837 Bytes

Contents

module Rad
  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

1 entries across 1 versions & 1 rubygems

Version Path
rad_core-0.0.13 lib/rad/controller/abstract_controller/micelaneous.rb