1. 08 8月, 2013 1 次提交
  2. 02 7月, 2013 2 次提交
  3. 23 6月, 2013 2 次提交
    • P
      Setup env and seed_loaded for DatabaseTasks outside load_config · 11ac1e8a
      Piotr Sarnacki 提交于
      Those vars can be used in tasks, which not call load_config.
      11ac1e8a
    • P
      Change a way ActiveRecord's config is prepared for rake tasks · 84fd0aad
      Piotr Sarnacki 提交于
      In commit d1d7c86d I moved setting migrations paths into activerecord's
      railtie to remove Rails dependency on databases.rake. However, it
      introduced a regression, ENGINE_PATH was not available at the moment, so
      engine's migrations where not added properly to paths. Fix was added
      at 97a4a771, but it changes a way things work from using ENGINE_PATH to
      APP_RAKEFILE. Additionally, the config runs when the code loads, while
      previously it ran in the db:load_config rake task
      
      In order to make it more in pair with original version this commit
      changes the config to run only on load_config task. This code uses the
      fact that defining a task in rake does not overwrite, but only appends.
      
      It also allows to get back to checking for ENGINE_PATH
      84fd0aad
  4. 16 5月, 2013 2 次提交
  5. 25 4月, 2013 2 次提交
  6. 24 4月, 2013 1 次提交
  7. 14 3月, 2013 1 次提交
  8. 03 3月, 2013 1 次提交
  9. 25 2月, 2013 1 次提交
    • Y
      remove AR auto-explain (config.auto_explain_threshold_in_seconds) · d3688e02
      Yves Senn 提交于
      We discussed that the auto explain feature is rarely used.
      This PR removes only the automatic explain. You can still display
      the explain output for any given relation using `ActiveRecord::Relation#explain`.
      
      As a side-effect this should also fix the connection problem during
      asset compilation (#9385). The auto explain initializer in the `ActiveRecord::Railtie`
      forced a connection.
      d3688e02
  10. 20 2月, 2013 1 次提交
  11. 31 12月, 2012 1 次提交
  12. 29 11月, 2012 3 次提交
  13. 26 11月, 2012 1 次提交
  14. 13 11月, 2012 1 次提交
  15. 09 11月, 2012 1 次提交
    • A
      Gracefully handle upgrading apps with mass assigment configs · 42cfacfe
      Andrew White 提交于
      Most apps upgrading from 3.x will have options for mass assigment in
      their application.rb and environments/*.rb config files. Rather than
      just raising a NoMethodError when copying the config, this commit
      adds a warning message until either the protected_attributes gem
      is installed or the relevant config options are removed.
      42cfacfe
  16. 26 10月, 2012 1 次提交
    • J
      Remove ActiveRecord::Model · 9e4c41c9
      Jon Leighton 提交于
      In the end I think the pain of implementing this seamlessly was not
      worth the gain provided.
      
      The intention was that it would allow plain ruby objects that might not
      live in your main application to be subclassed and have persistence
      mixed in. But I've decided that the benefit of doing that is not worth
      the amount of complexity that the implementation introduced.
      9e4c41c9
  17. 08 10月, 2012 1 次提交
  18. 24 9月, 2012 1 次提交
  19. 22 9月, 2012 1 次提交
  20. 09 9月, 2012 1 次提交
  21. 22 8月, 2012 1 次提交
  22. 01 8月, 2012 1 次提交
  23. 16 6月, 2012 4 次提交
  24. 10 6月, 2012 1 次提交
    • S
      raise error for pending migration · 96f19f6c
      schneems 提交于
      can be configured by setting config.active_record.migration. Setting to :page_load will raise an error on each page refresh if there are migrations that are pending. Setting to :page_load is defaulted in development for new applications. 
      96f19f6c
  25. 29 5月, 2012 2 次提交
  26. 27 4月, 2012 1 次提交
  27. 26 4月, 2012 1 次提交
  28. 04 4月, 2012 2 次提交
  29. 14 3月, 2012 1 次提交