Class: Galakei::Filter::Recode::Params

Inherits:
Base
  • Object
show all
Defined in:
lib/galakei/filter/recode.rb

Instance Attribute Summary

Attributes inherited from Base

#controller

Instance Method Summary collapse

Methods inherited from Base

condition?, filter, #html_content_type?, #method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Galakei::Filter::Base

Instance Method Details

#filterObject



10
11
12
13
14
15
# File 'lib/galakei/filter/recode.rb', line 10

def filter
  Rails.logger.debug("[galakei] AU handset over SSL detected, recoding everything to Shift_JIS")
  deep_apply(controller.params) do |param|
    NKF.nkf('-Sw', param)
  end
end