jpmobile/jpmobile — Issue #39: production 環境で hankaku_filterがエラー
Author: tsubo
Created: 2012-02-09 06:50:34+00:00
State: open

production 環境で hankaku_filterを使うと下記のエラーが出ます。
development 環境で使っている時は正常に動いていました。

■使用バージョン
rails 3.2.0
jpmobile 3.0.1

■ソース
class ApplicationController < ActionController::Base
protect_from_forgery
include Jpmobile::ViewSelector
hankaku_filter :input => true

■エラーログ
NameError (uninitialized constant Jpmobile::HankakuFilter::Nokogiri):
jpmobile (3.0.1) lib/jpmobile/filter.rb:61:in `to_external'
jpmobile (3.0.1) lib/jpmobile/filter.rb:46:in `after'
jpmobile (3.0.1) lib/jpmobile/filter.rb:10:in `block in hankaku_filter'
activesupport (3.2.0) lib/active_support/callbacks.rb:449:in `_run__1901410530977572378__process_action__4061666883376695914__callbacks'
activesupport (3.2.0) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.0) lib/active_support/callbacks.rb:385:in `_run_process_action_callbacks'
activesupport (3.2.0) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.0) lib/abstract_controller/callbacks.rb:17:in `process_action'
...