Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Uppercase HTML in docs. | Hendy Tanata | 2014-08-08 | 14 | -37/+37 |
| | | | | [skip ci] | ||||
* | [ci skip] Document ActionDispatch::Static | schneems | 2014-08-05 | 1 | -0/+9 |
| | |||||
* | [ci skip] document ActionDispatch::FileHandler | schneems | 2014-08-05 | 1 | -0/+10 |
| | |||||
* | [ci skip] Document PublicExceptions middleware | schneems | 2014-08-05 | 1 | -0/+10 |
| | |||||
* | Merge branch 'master' of github.com:rails/docrails | Vijay Dev | 2014-08-02 | 4 | -30/+11 |
|\ | | | | | | | | | Conflicts: guides/source/testing.md | ||||
| * | copy edits[ci skip] | Vijay Dev | 2014-08-02 | 1 | -3/+1 |
| | | |||||
| * | [ci skip] Normalize all localhost linking. | Juanito Fatas | 2014-07-20 | 1 | -2/+2 |
| | | |||||
| * | Performed Returns true if redirect/render has happened | Gaurish Sharma | 2014-07-19 | 1 | -1/+4 |
| | | |||||
| * | [ci skip] Remove duplicated last! section. | Juanito Fatas | 2014-07-16 | 1 | -17/+0 |
| | | | | | | | | | | | | Reference: https://github.com/rails/rails/commit/d4fd0bd17709735ac91e434c94fe99429f078c6e cc @schneems | ||||
| * | [ci skip] Use appropriate mailer syntax. | Juanito Fatas | 2014-07-16 | 1 | -3/+3 |
| | | | | | | | | Reference: https://github.com/rails/rails/commit/f7e4362011ceb1317fd401125d48d7ccb9a1079c | ||||
| * | Add link to minitest rdoc & github | Gaurish Sharma | 2014-07-13 | 1 | -1/+3 |
| | | |||||
* | | 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 | ||||
* | | Rename tests too | Rafael Mendonça França | 2014-08-01 | 1 | -2/+2 |
| | | |||||
* | | Rename Object#self to Object#itself to have parity with matz sanctioned ↵ | David Heinemeier Hansson | 2014-08-01 | 4 | -6/+6 |
| | | | | | | | | method name for Ruby 2.2 | ||||
* | | Added Object#self which returns the object itself | David Heinemeier Hansson | 2014-08-01 | 4 | -0/+26 |
| | | |||||
* | | Use available method rather than macro name checking | Carlos Antonio da Silva | 2014-07-31 | 1 | -1/+1 |
| | | |||||
* | | Rename method for clarity | Carlos Antonio da Silva | 2014-07-31 | 1 | -3/+3 |
| | | | | | | | | Ruby generally does not use the is_* prefix on predicate methods. | ||||
* | | use `get` instead of accessing the named routes internals | Aaron Patterson | 2014-07-31 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #16363 from arthurnn/null_transaction | Rafael Mendonça França | 2014-07-31 | 2 | -70/+67 |
|\ \ | | | | | | | Null transaction | ||||
| * | | Replace ClosedTransaction with NullTransaction | Arthur Neves | 2014-07-31 | 2 | -8/+5 |
| | | | |||||
| * | | Move TransactionManager to bottom of class | Arthur Neves | 2014-07-31 | 1 | -67/+67 |
|/ / | |||||
* | | Merge pull request #16341 from arthurnn/transactions_remove_begin | Rafael Mendonça França | 2014-07-31 | 2 | -56/+20 |
|\ \ | | | | | | | Transactions refactoring - 2 | ||||
| * | | Make ClosedTransaction a null object | Arthur Neves | 2014-07-31 | 1 | -16/+6 |
| | | | |||||
| * | | Remove parent on Transaction object | Arthur Neves | 2014-07-31 | 1 | -16/+9 |
| | | | |||||
| * | | Remove being/number methods from transaction class | Arthur Neves | 2014-07-31 | 2 | -29/+10 |
| | | | |||||
* | | | 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. | ||||
* | | | Merge pull request #16350 from JackDanger/test-rake-db-migrate-task | Rafael Mendonça França | 2014-07-31 | 3 | -4/+24 |
|\ \ \ | | | | | | | | | Add ActiveRecord::Tasks::DatabaseTasks.migrate | ||||
| * | | | Add ActiveRecord::Tasks::DatabaseTasks.migrate | Jack Danger Canty | 2014-07-31 | 3 | -4/+24 |
| | | | | | | | | | | | | | | | | | | | | | | | | This extracts the logic that was embedded in a Rake task into a static method. Bonus: the first test for `rake db:migrate` | ||||
* | | | | Merge pull request #16361 from JackDanger/clearer-connection-pool-documentation | Rafael Mendonça França | 2014-07-31 | 1 | -15/+36 |
|\ \ \ \ | | | | | | | | | | | [doc] Clarify how the ConnectionHandler works | ||||
| * | | | | Clarify how the ConnectionHandler works | Jack Danger Canty | 2014-07-31 | 1 | -15/+36 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This makes the implicit description of how connection pooling works a little more explicit. It converts the examples of a model hierarchy into actual Ruby code and demonstrates how the key structure of the database.yml relates to the `establish_connection` method. | ||||
* | | | | | Merge pull request #16353 from ↵ | Rafael Mendonça França | 2014-07-31 | 2 | -29/+29 |
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | eileencodes/refactor-join_keys-usage-in-reflection Refactor join_keys to remove complex conditionals | ||||
| * | | | | | Refactor join_keys to remove complex conditionals | eileencodes | 2014-07-31 | 2 | -29/+29 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Pushing conditionals down to through reflection Only the through association needs the part of this conditional that deals with belongs to and polymorphic? so that can be pushed down into the ThroughReflection reducing the conditionals. Remove conditional because we can delegate join keys to source reflection Remove need for source_macro checking By adding join_id_for to the other reflections we remove the need to cehck against the source_macro and can reduce the conditioanl from the original join_id_for(owner) Using polymorphism instead of testing the source_macro This case statement in join_association is almost exactly the same as the original join_keys code. Testing taht theory by creating a new join_dependency_keys(assoc_klass) method. Refactor join_keys further to be more concise Fixed format of "#:nodoc:" to "# :nodoc:" where I added them to this file. | ||||
* | | | | | | 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 |
|/ / / / / | |||||
* | | | | | Merge pull request #16351 from ↵ | Rafael Mendonça França | 2014-07-31 | 3 | -11/+9 |
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | eileencodes/finish-refactoring-macro-to-eliminate-checking-against-symbols Redefine macro checks for reflections | ||||
| * | | | | | Redefine macro checks for reflections | eileencodes | 2014-07-30 | 3 | -11/+9 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we define the macro on the reflection type we no longer need to check `macro == :what` on each type for `belongs_to?` or `has_one?` etc. These now default to false unless it's defined in the reflection class. Reuse existing belongs_to? method to check macros We don't need to do `:belongs_to == macro` anymore becasue we have a `belongs_to?` method. I didn't find this being used anywhere for `has_one?` or `collection?` since they were already fixed. | ||||
* | | | | | | 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 |
| | | | | | | |||||
* | | | | | | Fix assertion arguments order | Carlos Antonio da Silva | 2014-07-31 | 1 | -1/+1 |
| | | | | | | |||||
* | | | | | | Avoid creating an extra hash | Carlos Antonio da Silva | 2014-07-31 | 1 | -2/+2 |
| | | | | | | |||||
* | | | | | | 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. | ||||
* | | | | | | Merge pull request #16356 from gchan/add-hwia-tests | Yves Senn | 2014-07-31 | 1 | -0/+12 |
|\ \ \ \ \ \ | | | | | | | | | | | | | | | Add tests to ensure default proc is used when `HashWithIndifferentAccess' is initialized with a block | ||||
| * | | | | | | Add tests to ensure default proc is used when `HashWithIndifferentAccess' is ↵ | Gordon Chan | 2014-07-31 | 1 | -0/+12 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | initialized with a block | ||||
* | | | | | | | Merge pull request #16355 from xaviershay/validate-in-groups-of-args | Aaron Patterson | 2014-07-30 | 2 | -0/+11 |
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | Raise a descriptive error if non-positive integer passed to in_groups_of |