Sha256: 82fb73be9757583dad63a20a02050338d312f5d3520d6671c3336c5458917439

Contents?: true

Size: 732 Bytes

Versions: 12

Compression:

Stored size: 732 Bytes

Contents

module Rad::Controller::Abstract::Micelaneous
  # 
  # respond_to
  # 
  def respond_to &block
    @_responder.must_be.nil
    @_responder = Rad::Controller::Abstract::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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
rad_core-0.0.25 lib/rad/controller/_abstract/micelaneous.rb
rad_core-0.0.24 lib/rad/controller/_abstract/micelaneous.rb
rad_core-0.0.23 lib/rad/controller/_abstract/micelaneous.rb
rad_core-0.0.22 lib/rad/controller/_abstract/micelaneous.rb
rad_core-0.0.21 lib/rad/controller/_abstract/micelaneous.rb
rad_core-0.0.20 lib/rad/controller/_abstract/micelaneous.rb
rad_core-0.0.19 lib/rad/controller/_abstract/micelaneous.rb
rad_core-0.0.18 lib/rad/controller/_abstract/micelaneous.rb
rad_core-0.0.17 lib/rad/controller/_abstract/micelaneous.rb
rad_core-0.0.16 lib/rad/controller/_abstract/micelaneous.rb
rad_core-0.0.15 lib/rad/controller/_abstract/micelaneous.rb
rad_core-0.0.14 lib/rad/controller/_abstract/micelaneous.rb