class Railroader::ConfigAliasProcessor
This is necessary to replace block variable so we can track config settings
Constants
- RAILS_INIT
Public Instance Methods
process_iter(exp)
click to toggle source
Look for a call to
Rails::Initializer.run do |config| ... end
and replace config with RAILS_CONFIG
# File lib/railroader/processors/lib/rails2_config_processor.rb, line 135 def process_iter exp target = exp.block_call.target method = exp.block_call.method if sexp? target and target == RAILS_INIT and method == :run env[Sexp.new(:lvar, exp.block_args.value)] = Railroader::Rails2ConfigProcessor::RAILS_CONFIG end process_default exp end