Guest User

Untitled

a guest
May 27th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.22 KB | None | 0 0
  1. def method_missing(name, *args)
  2. if name.to_s.match(/^config_/)
  3. name = name.to_s.gsub(/^config_/, '')
  4.  
  5. p configs.inspect
  6. v = if name.last == '='
  7. configs[name.gsub(/\=$/, '').to_sym] = args.first
  8. else
  9. configs[name.to_sym]
  10. end
  11.  
  12. return v
  13. end
  14. p '!!!!!!!!!!!!'
  15.  
  16. super name, *args
  17. end
  18.  
  19. Instance.config_skip_amount_error
  20.  
  21. 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'
  22. [RAILS_ROOT]/app/models/purchase.rb:18:in `set_amount'
  23. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:178:in `send'
  24. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:178:in `evaluate_method'
  25. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:166:in `call'
  26. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:93:in `run'
  27. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:92:in `each'
  28. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:92:in `send'
  29. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:92:in `run'
  30. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activesupport-2.2.2/lib/active_support/callbacks.rb:277:in `run_callbacks'
  31. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:315:in `callback'
  32. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/callbacks.rb:282:in `valid?'
  33. [RAILS_ROOT]/lib/reports_engine.rb:128:in `model_valid!'
  34. [RAILS_ROOT]/lib/reports_engine.rb:111:in `process_file'
  35. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/fastercsv-1.4.0/lib/faster_csv.rb:1514:in `each'
  36. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/fastercsv-1.4.0/lib/faster_csv.rb:1017:in `foreach'
  37. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/fastercsv-1.4.0/lib/faster_csv.rb:1191:in `open'
  38. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/fastercsv-1.4.0/lib/faster_csv.rb:1016:in `foreach'
  39. [RAILS_ROOT]/lib/reports_engine.rb:91:in `process_file'
  40. [RAILS_ROOT]/lib/reports_engine.rb:42:in `run_report'
  41. 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'
  42. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/activerecord-2.2.2/lib/active_record/transactions.rb:129:in `transaction'
  43. [RAILS_ROOT]/lib/reports_engine.rb:42:in `run_report'
  44. [RAILS_ROOT]/lib/reports_engine.rb:39:in `each'
  45. [RAILS_ROOT]/lib/reports_engine.rb:39:in `run_report'
  46. [RAILS_ROOT]/lib/tasks/datarm.rake:61
  47. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `call'
  48. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:615:in `execute'
  49. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `each'
  50. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:612:in `execute'
  51. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:578:in `invoke_with_call_chain'
  52. C:/web/soft/ruby/lib/ruby/1.8/monitor.rb:238:in `synchronize'
  53. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:571:in `invoke_with_call_chain'
  54. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:564:in `invoke'
  55. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2019:in `invoke_task'
  56. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
  57. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `each'
  58. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1997:in `top_level'
  59. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
  60. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1991:in `top_level'
  61. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1970:in `run'
  62. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:2036:in `standard_exception_handling'
  63. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/lib/rake.rb:1967:in `run'
  64. C:/web/soft/ruby/lib/ruby/gems/1.8/gems/rake-0.8.3/bin/rake:31
  65. C:/web/soft/ruby/bin/rake:19:in `load'
  66. C:/web/soft/ruby/bin/rake:19
Add Comment
Please, Sign In to add comment