Sha256: e06a69354edd6807af7e2f743e4072c212df84e46475e5d7b2f1fcd4fe098a02
Contents?: true
Size: 1.15 KB
Versions: 5
Compression:
Stored size: 1.15 KB
Contents
module Galakei class Railtie < ::Rails::Railtie config.galakei = ActiveSupport::OrderedOptions.new initializer "galakei.extend.action_controller" do |app| ActiveSupport.on_load :action_controller do include Galakei::HelperMethods after_filter Galakei::Filter::ContentType, :if => lambda {|c| Galakei::Filter::ContentType.condition?(c) } before_filter Galakei::Filter::Recode::Params, :if => lambda {|c| Galakei::Filter::Recode.condition?(c) } after_filter Galakei::Filter::Recode::Response, :if => lambda {|c| Galakei::Filter::Recode.condition?(c) } after_filter Galakei::Filter::NonStandardChar, :if => lambda {|c| Galakei::Filter::NonStandardChar.condition?(c) } after_filter Galakei::Filter::Hankaku, :if => lambda {|c| Galakei::Filter::Hankaku.condition?(c) } around_filter Galakei::Filter::Haml, :if => :galakei? if defined?(Haml) end ActiveSupport.on_load :action_view do include Galakei::InputMode end end end end require 'galakei/session_id_parameter/railtie' require 'galakei/docomo_css/railtie' require 'galakei/email/railtie' require 'galakei/lookup/railtie'
Version data entries
5 entries across 5 versions & 1 rubygems