Sha256: 29e4f02baadab7b15f02e9816183a27d5531f82171084eb84b143ab8e96ff88f
Contents?: true
Size: 596 Bytes
Versions: 5
Compression:
Stored size: 596 Bytes
Contents
module Delocalize class Railtie < Rails::Railtie initializer "delocalize" do |app| ActiveSupport.on_load :action_controller do # By default, we use ActionController::Parameters provided by strong_parameters. If it's # not there, we fall back to our own replacement (Delocalize::Parameters). if defined?(ActionController::Parameters) ActionController::Parameters.send(:include, Delocalize::ParameterDelocalizing) else ActionController::Base.send(:include, Delocalize::DelocalizableParameters) end end end end end
Version data entries
5 entries across 4 versions & 2 rubygems