1. 12 6月, 2015 4 次提交
  2. 11 6月, 2015 1 次提交
  3. 01 6月, 2015 2 次提交
  4. 30 5月, 2015 1 次提交
  5. 29 5月, 2015 1 次提交
  6. 28 5月, 2015 1 次提交
  7. 25 5月, 2015 1 次提交
  8. 23 5月, 2015 1 次提交
  9. 12 5月, 2015 1 次提交
  10. 09 5月, 2015 1 次提交
    • E
      Move `TemplateAssertions` to their own file · 16d7f6d0
      eileencodes 提交于
      This moves `TemplateAssertions` out of the `test_case.rb` file and into
      it's own `template_assertions` file. It still inherits from
      `ActionController`.`
      
      This is in preparation for combining the code for Integration tests and
      Controller tests. This will need to be it's own file to be added to the
      `requires` for Integration tests. This does not currently change ANY
      behavior, just moving it for access later on.
      16d7f6d0
  11. 04 5月, 2015 1 次提交
  12. 02 5月, 2015 1 次提交
  13. 28 4月, 2015 2 次提交
  14. 19 4月, 2015 1 次提交
  15. 15 4月, 2015 2 次提交
  16. 14 4月, 2015 2 次提交
  17. 13 4月, 2015 4 次提交
  18. 09 4月, 2015 1 次提交
  19. 06 4月, 2015 3 次提交
  20. 05 4月, 2015 1 次提交
  21. 02 4月, 2015 2 次提交
    • B
      Freeze static arguments for gsub · 58d75fd8
      brainopia 提交于
      58d75fd8
    • B
      Prefer string patterns for gsub · cdac52e1
      brainopia 提交于
      https://github.com/ruby/ruby/pull/579 - there is a new optimization
      since ruby 2.2
      
      Previously regexp patterns were faster (since a string was converted to
      regexp underneath anyway). But now string patterns are faster and
      better reflect the purpose.
      
        Benchmark.ips do |bm|
          bm.report('regexp') { 'this is ::a random string'.gsub(/::/, '/') }
          bm.report('string') { 'this is ::a random string'.gsub('::', '/') }
          bm.compare!
        end
        # string: 753724.4 i/s
        # regexp: 501443.1 i/s - 1.50x slower
      cdac52e1
  22. 28 3月, 2015 1 次提交
    • S
      Return super in ActionController::Parameters.const_missing · 1b0526ea
      Shuhei Kagawa 提交于
      The current implementation of ActionController::Parameters.const_missing
      returns `ActionController::Parameters.always_permitted_parameters` even
      if its `super` returns a constant without raising error. This prevents its
      subclass in a autoloading module/class from taking advantage of
      autoloading constants.
      
          class SomeParameters < ActionController::Parameters
            def do_something
              DefinedSomewhere.do_something
            end
          end
      
      In the code above, `DefinedSomewhere` is to be autoloaded with
      `Module.const_missing` but `ActionController::Parameters.const_missing`
      returns `always_permitted_parameters` instead of the autoloaded
      constant.
      
      This pull request fixes the issue respecting `const_missing`'s `super`.
      1b0526ea
  23. 25 3月, 2015 1 次提交
  24. 13 3月, 2015 1 次提交
    • J
      Return true from head method · d5efb1f9
      Joel Hayhurst 提交于
      It was returning false in normal circumstances.
      This broke the `head :ok and return if` construct.
      Add appropriate test.
      d5efb1f9
  25. 12 3月, 2015 1 次提交
  26. 06 3月, 2015 1 次提交
  27. 05 3月, 2015 1 次提交