Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | no reason to lazily instantiate the routes | Aaron Patterson | 2014-08-05 | 1 | -45/+42 | |
| | | | | | especially if you're just going to add a call two lines down that populates the cache. common. | |||||
* | just assign the instance variables on the test | Aaron Patterson | 2014-08-05 | 1 | -7/+3 | |
| | ||||||
* | avoid testing only_path | Aaron Patterson | 2014-08-04 | 2 | -2/+5 | |
| | | | | | we know that this call only wants the path returned, so lets call a method that returns the path. | |||||
* | Regenerate sid when sbdy tries to fixate the session | Santiago Pastorino | 2014-08-04 | 2 | -12/+11 | |
| | | | | | | Fixed broken test. Thanks Stephen Richards for reporting. | |||||
* | Using no_result_var in Journey's parser generator | Jack Danger Canty | 2014-08-03 | 2 | -43/+33 | |
| | | | | | | | | | | | Previously the generated parser had an intermediate local variable `result` that really useful if you're building up a stateful object but Journey always discards the result argument to the reduce functions. This produces a simpler parser for anybody who actually wants to read the thing. Sadly, there's no real performance speedup with this change. | |||||
* | Merge branch 'master' of github.com:rails/docrails | Vijay Dev | 2014-08-02 | 1 | -1/+2 | |
|\ | | | | | | | | | Conflicts: guides/source/testing.md | |||||
| * | copy edits[ci skip] | Vijay Dev | 2014-08-02 | 1 | -3/+1 | |
| | | ||||||
| * | Performed Returns true if redirect/render has happened | Gaurish Sharma | 2014-07-19 | 1 | -1/+4 | |
| | | ||||||
* | | just set the host, no need for another hash allocation / merge! | Aaron Patterson | 2014-08-01 | 1 | -1/+1 | |
| | | ||||||
* | | always return a string from find_script_name | Aaron Patterson | 2014-08-01 | 2 | -7/+9 | |
| | | | | | | | | this allows us to avoid nil checks on the return value | |||||
* | | use `get` instead of accessing the named routes internals | Aaron Patterson | 2014-07-31 | 1 | -1/+1 | |
| | | ||||||
* | | invert check so we fail faster | Aaron Patterson | 2014-07-31 | 1 | -1/+1 | |
| | | | | | | | | | | there's no reason to to_sym the string if it doesn't match the regexp anyway | |||||
* | | do a hash lookup for collision detection | Aaron Patterson | 2014-07-31 | 2 | -1/+5 | |
| | | | | | | | | hash lookup should be faster than searching an array. | |||||
* | | Realign assignments :scissors: | Carlos Antonio da Silva | 2014-07-31 | 1 | -5/+5 | |
| | | ||||||
* | | Do not reassign variable when mutation is happening | Carlos Antonio da Silva | 2014-07-31 | 1 | -8/+5 | |
| | | | | | | | | | | These methods mutate the path variable/argument so there is no need to reassign it every time. | |||||
* | | Only concatenate path if it was given rather than converting blindly | Carlos Antonio da Silva | 2014-07-31 | 1 | -1/+1 | |
| | | ||||||
* | | Rename variable to better show its intent | Carlos Antonio da Silva | 2014-07-31 | 1 | -12/+12 | |
| | | ||||||
* | | Simplify conditional | Carlos Antonio da Silva | 2014-07-31 | 1 | -3/+2 | |
| | | ||||||
* | | Push options check up so we can simplify internal methods | Carlos Antonio da Silva | 2014-07-31 | 1 | -13/+10 | |
| | | ||||||
* | | Simplify code branch, remove #tap | Carlos Antonio da Silva | 2014-07-31 | 1 | -7/+6 | |
| | | ||||||
* | | Avoid a new hash object | Carlos Antonio da Silva | 2014-07-31 | 1 | -1/+1 | |
| | | ||||||
* | | Remove unnecessary call to #tap | Carlos Antonio da Silva | 2014-07-31 | 1 | -5/+3 | |
| | | | | | | | | | | This is not storying the RouteSet instance anywhere as the other examples in the file, so no need to use #tap. | |||||
* | | remove useless deup | Aaron Patterson | 2014-07-30 | 1 | -1/+1 | |
| | | | | | | | | | | every call to default_resources_path_names allocates a new hash, no need to dup | |||||
* | | push options inside the scope object | Aaron Patterson | 2014-07-30 | 1 | -4/+9 | |
| | | ||||||
* | | turn scope in to a linked list | Aaron Patterson | 2014-07-30 | 1 | -15/+36 | |
| | | | | | | | | this makes scope rollback much easier | |||||
* | | remove alias_method_chain | Aaron Patterson | 2014-07-30 | 1 | -4/+2 | |
| | | | | | | | | we can `super` in to the previous implementation. | |||||
* | | avoid instrospection on the module | Aaron Patterson | 2014-07-30 | 1 | -1/+2 | |
| | | | | | | | | | | we already know what helpers are path helpers, so just iterate through that list and define the helpers with warnings | |||||
* | | fix variable name | Aaron Patterson | 2014-07-30 | 1 | -3/+3 | |
| | | ||||||
* | | split path_helpers and url_helpers | Aaron Patterson | 2014-07-30 | 1 | -18/+25 | |
| | | | | | | | | | | this lets us avoid hard coding a regexp for separating path and url helpers in the clear! method. | |||||
* | | `add` will remove the method if it exists already | Aaron Patterson | 2014-07-30 | 1 | -1/+0 | |
| | | ||||||
* | | Deprecate `*_path` methods in mailers | @schneems and @sgrif | 2014-07-30 | 4 | -51/+97 | |
| | | | | | | | | | | | | | | | | | | | | | | Email does not support relative links since there is no implicit host. Therefore all links inside of emails must be fully qualified URLs. All path helpers are now deprecated. When removed, the error will give early indication to developers to use `*_url` methods instead. Currently if a developer uses a `*_path` helper, their tests and `mail_view` will not catch the mistake. The only way to see the error is by sending emails in production. Preventing sending out emails with non-working path's is the desired end goal of this PR. Currently path helpers are mixed-in to controllers (the ActionMailer::Base acts as a controller). All `*_url` and `*_path` helpers are made available through the same module. This PR separates this behavior into two modules so we can extend the `*_path` methods to add a Deprecation to them. Once deprecated we can use this same area to raise a NoMethodError and add an informative message directing the developer to use `*_url` instead. The module with warnings is only mixed in when a controller returns false from the newly added `supports_relative_path?`. Paired @sgrif & @schneems | |||||
* | | Revert "Merge pull request #15305 from tgxworld/remove_unnecessary_require" | Santiago Pastorino | 2014-07-30 | 1 | -0/+1 | |
| | | | | | | | | | | | | | | This reverts commit f632f79b8dcd144408c66a544984b2ba9cf52f87, reversing changes made to 98c7fe87690ca4de6c46e8f69806e82e3f8af42d. Closes #16343 | |||||
* | | oops! :bomb: | Aaron Patterson | 2014-07-29 | 1 | -1/+1 | |
| | | | | | | | | use helpers.include? so we don't get any false positives | |||||
* | | ask the named routes collection if the route is defined | Aaron Patterson | 2014-07-29 | 2 | -1/+5 | |
| | | | | | | | | | | we should not be accessing internals to figure out if a method is defined. | |||||
* | | helpers should be a Set so it doesn't grow unbounded | Aaron Patterson | 2014-07-29 | 1 | -4/+12 | |
| | | | | | | | | | | since helpers is a set, we can be confident about when to remove methods from the module. | |||||
* | | pass the module to define_named_route_methods | Aaron Patterson | 2014-07-29 | 1 | -7/+7 | |
| | | | | | | | | after this, we can disconnect @module from the instance | |||||
* | | only ask for the routes module once | Aaron Patterson | 2014-07-29 | 1 | -2/+4 | |
| | | | | | | | | we can cache the module on the stack, then reuse it | |||||
* | | eval_block should be private | Aaron Patterson | 2014-07-29 | 1 | -0/+1 | |
| | | ||||||
* | | remove the mounted? method | Aaron Patterson | 2014-07-28 | 2 | -6/+2 | |
| | | | | | | | | | | we know the routes should not be "optimized" when mounting an application | |||||
* | | remove some caching | Aaron Patterson | 2014-07-28 | 1 | -2/+1 | |
| | | | | | | | | | | this caching doesn't increase performance, but does increase complexity. remove it for now and find better ways to speed up this code. | |||||
* | | Merge pull request #16303 from rajcybage/removing_master | Yves Senn | 2014-07-28 | 1 | -0/+2 | |
|\ \ | | | | | | | | | | remove empty unused method | |||||
| * | | add comment to the empty each method for not removing it in future | Rajarshi Das | 2014-07-26 | 1 | -1/+2 | |
| | | | ||||||
* | | | Fix protect_from_forgery docs | David Albert | 2014-07-27 | 1 | -1/+1 | |
|/ / | ||||||
* | | docs, add ref where to find valid `head` status symbols. | Yves Senn | 2014-07-25 | 1 | -0/+2 | |
| | | | | | | | | [ci skip] | |||||
* | | Improve description of tests. | Guo Xiang Tan | 2014-07-25 | 1 | -4/+4 | |
| | | ||||||
* | | Bug fix for assert_template when opening a new session. | Guo Xiang Tan | 2014-07-25 | 2 | -5/+49 | |
| | | | | | | | | See https://github.com/rails/rails/pull/16234#commitcomment-7115670. | |||||
* | | Use PROCESS_COUNT to define the number of parallel executors | Rafael Mendonça França | 2014-07-23 | 1 | -1/+1 | |
| | | ||||||
* | | specify N=0 to prevent parallel tests (just run tests on the main process) | Aaron Patterson | 2014-07-23 | 1 | -2/+6 | |
| | | ||||||
* | | Fix AC::TemplateAssertions instance variables not resetting. | Guo Xiang Tan | 2014-07-21 | 3 | -5/+66 | |
| | | | | | | | | Fixes https://github.com/rails/rails/issues/16119. | |||||
* | | Merge branch 'rm-remove-mocha' | Rafael Mendonça França | 2014-07-19 | 1 | -0/+2 | |
|\ \ | | | | | | | | | | | | | Conflicts: actionpack/test/abstract_unit.rb |