1. 28 7月, 2012 6 次提交
  2. 27 7月, 2012 4 次提交
    • J
      ActiveRecord::Base.all returns a Relation. · 6a81ccd6
      Jon Leighton 提交于
      Previously it returned an Array.
      
      If you want an array, call e.g. `Post.to_a` rather than `Post.all`. This
      is more explicit.
      
      In most cases this should not break existing code, since
      Relations use method_missing to delegate unknown methods to #to_a
      anyway.
      6a81ccd6
    • R
      Only require the `:rails_env` task where is needed. · f1afd776
      Rafael Mendonça França 提交于
      `:rails_env` tasks is not needed in all the tasks that depends of
      `load_config`, only in the tasks that uses `Rails.env`.
      
      Since `:rails_env` task set the `Rails.env` to be "development" if it is
      not set we don't need the `||` statements too
      
      Fix #7175.
      
      Conflicts:
      	activerecord/lib/active_record/railties/databases.rake
      f1afd776
    • Y
      Modify the preference attribute from `:null => false` to `:null => true` · dab8ca53
      Yasuo Honda 提交于
      to address ORA-01400 errors with Oracle enhanced adapter.
      
      Issue #4856 had been fixed and tested with
      the attribute `:null => false, :default => ""`.
      Now `:null => false` attribute is not necessary to test this issue.
      dab8ca53
    • B
      Refactor ActiveRecord::Inheritance.base_class logic · d0aebd53
      beerlington 提交于
      Moved logic from class_of_active_record_descendant(class) to the
      base_class method. This method was confusing because it required
      an argument, but that argument was 'self'.
      
      Moved base_class tests to inheritance_test.rb and added some test
      coverage for some untested cases.
      d0aebd53
  3. 26 7月, 2012 5 次提交
  4. 25 7月, 2012 4 次提交
  5. 22 7月, 2012 3 次提交
  6. 21 7月, 2012 7 次提交
  7. 20 7月, 2012 3 次提交
  8. 19 7月, 2012 3 次提交
  9. 18 7月, 2012 5 次提交