1. 02 8月, 2016 2 次提交
    • K
      Make Parameters support legacy YAML encodings. · 31448f2b
      Kasper Timm Hansen 提交于
      By changing ActionController::Parameter's superclass, Rails 5 also changed
      the YAML serialization format.
      
      Since YAML doesn't know how to handle parameters it would fallback to its
      routine for the superclass, which in Rails 4.2 was Hash while just Object
      in Rails 5. As evident in the tags YAML would spit out:
      
      4.2: !ruby/hash-with-ivars:ActionController::Parameters
      5.0: !ruby/object:ActionController::Parameters
      
      Thus when loading parameters YAML from 4.2 in Rails 5, it would parse a
      hash dump as it would an Object class.
      
      To fix this we have to provide our own `init_with` to be aware of the past
      format as well as the new one. Then we add a `load_tags` mapping, such that
      when the YAML parser sees `!ruby/hash-with-ivars:ActionController::Parameters`,
      it knows to call our `init_with` function and not try to instantiate it as
      a normal hash subclass.
      31448f2b
    • S
      Merge pull request #25986 from kamipo/remove_unnecessary_methods_for_null_relation · c205e3fc
      Sean Griffin 提交于
      Remove unnecessary methods for `NullRelation`
      c205e3fc
  2. 01 8月, 2016 4 次提交
  3. 31 7月, 2016 2 次提交
  4. 30 7月, 2016 2 次提交
  5. 29 7月, 2016 3 次提交
  6. 28 7月, 2016 27 次提交