Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def method_missing(name, *args)
- if name.to_s.match(/^config_/)
- name = name.to_s.gsub(/^config_/, '')
- p configs.inspect
- v = if name.last == '='
- configs[name.gsub(/\=$/, '').to_sym] = args.first
- else
- configs[name.to_sym]
- end
- return v
- end
- p '!!!!!!!!!!!!'
- super name, *args
- end
- Instance.config_skip_amount_error
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/associations/association_proxy.rb:209:in `method_missing'
- [RAILS_ROOT]/app/models/purchase.rb:18:in `set_amount'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:178:in `send'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:178:in `evaluate_method'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:166:in `call'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:93:in `run'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:92:in `each'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:92:in `send'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:92:in `run'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:277:in `run_callbacks'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:315:in `callback'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:282:in `valid?'
- [RAILS_ROOT]/lib/reports_engine.rb:128:in `model_valid!'
- [RAILS_ROOT]/lib/reports_engine.rb:111:in `process_file'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/fastercsv-1.4.0/lib/faster_csv.rb:1514:in `each'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/fastercsv-1.4.0/lib/faster_csv.rb:1017:in `foreach'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/fastercsv-1.4.0/lib/faster_csv.rb:1191:in `open'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/fastercsv-1.4.0/lib/faster_csv.rb:1016:in `foreach'
- [RAILS_ROOT]/lib/reports_engine.rb:91:in `process_file'
- [RAILS_ROOT]/lib/reports_engine.rb:42:in `run_report'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/connection_adapters/abstract/database_statements.rb:66:in `transaction'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:129:in `transaction'
- [RAILS_ROOT]/lib/reports_engine.rb:42:in `run_report'
- [RAILS_ROOT]/lib/reports_engine.rb:39:in `each'
- [RAILS_ROOT]/lib/reports_engine.rb:39:in `run_report'
- [RAILS_ROOT]/lib/tasks/datarm.rake:61
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `call'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `execute'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in `invoke_with_call_chain'
- C:/web/soft/ruby/lib/ruby/1.8/monitor.rb:238:in `synchronize'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in `invoke_task'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run'
- C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31
- C:/web/soft/ruby/bin/rake:19:in `load'
- C:/web/soft/ruby/bin/rake:19
Add Comment
Please, Sign In to add comment