Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Improve docs for `try` by adding note on `BasicObject` | Piotr Sarnacki | 2012-05-20 | 1 | -0/+4 |
| | | | | [ci skip] closes #5790 | ||||
* | probably should require the objects we monkey patch. | Aaron Patterson | 2012-04-10 | 1 | -0/+1 |
| | |||||
* | bigdecimal can be duped on Ruby 2.0 | Aaron Patterson | 2012-04-10 | 1 | -0/+12 |
| | | | | | | Conflicts: activesupport/test/core_ext/duplicable_test.rb | ||||
* | Merge pull request #3767 from tadast/object_in | Yehuda Katz | 2011-11-26 | 1 | -7/+17 |
|\ | | | | | Object#in? also accepts multiple parameters | ||||
| * | Object#in? also accepts multiple parameters | Tadas Tamošauskas | 2011-11-26 | 1 | -7/+17 |
| | | |||||
* | | Don't unnecessarily use String eval. | Jose and Yehuda | 2011-10-15 | 1 | -2/+2 |
|/ | |||||
* | Revert "don't raise NoMethodError the tried method doesn't exists" | José Valim | 2011-10-06 | 1 | -2/+0 |
| | | | | This reverts commit 29a5aeaae976bf8432d57ec996c7c81932a39de6. | ||||
* | Set the default options value for as_json in the encoder object. | José Valim | 2011-09-30 | 1 | -1/+1 |
| | |||||
* | Fixing `as_json` method for ActiveRecord models. | Nicolás Hock Isaza | 2011-09-29 | 1 | -1/+1 |
| | | | | | | | | | | | | | When you've got an AR Model and you override the `as_json` method, you should be able to add default options to the renderer, like this: class User < ActiveRecord::Base def as_json(options = {}) super(options.merge(:except => [:password_digest])) end end This was not possible before this commit. See the added test case. | ||||
* | Fix Hash#to_query edge case with html_safe string on 1.8 ruby | brainopia | 2011-09-16 | 1 | -1/+1 |
| | |||||
* | Revert all the stuff to do with disallowing non-public methods for ↵ | Jon Leighton | 2011-08-25 | 1 | -25/+0 |
| | | | | Module#delegate | ||||
* | Document Object#public_send | Jon Leighton | 2011-08-15 | 1 | -1/+1 |
| | |||||
* | Backport Object#public_send to 1.8 so that we can implement Module#delegate ↵ | Jon Leighton | 2011-08-15 | 1 | -0/+25 |
| | | | | such that non-public methods raise | ||||
* | missing require of string/encoding to have access to encoding_aware? | Damien Mathieu | 2011-07-20 | 1 | -0/+1 |
| | |||||
* | fix String#blank? on binary strings. | Damien Mathieu | 2011-07-20 | 1 | -1/+6 |
| | |||||
* | need magic comments | Akira Matsuda | 2011-07-14 | 1 | -0/+2 |
| | |||||
* | treat fullwidth whitespace as a blank character | Akira Matsuda | 2011-07-14 | 1 | -1/+5 |
| | |||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-05-25 | 1 | -1/+1 |
|\ | | | | | | | | | | | Conflicts: actionmailer/lib/action_mailer/base.rb activesupport/lib/active_support/core_ext/kernel/requires.rb | ||||
| * | Remove extra white spaces on ActiveSupport docs. | Sebastian Martinez | 2011-05-23 | 1 | -1/+1 |
| | | |||||
* | | don't raise NoMethodError the tried method doesn't exists | dmathieu | 2011-05-21 | 1 | -0/+2 |
|/ | |||||
* | Prevent duplicable comments from being the opening paragraph for Object docs | Evan Farrar | 2011-05-18 | 1 | -0/+2 |
| | |||||
* | replaced eg using old router api with the one in the guides. Add info on ↵ | Vijay Dev | 2011-05-07 | 1 | -5/+8 |
| | | | | nesting with_options | ||||
* | revises comment for blank? method | Vijay Dev | 2011-05-07 | 1 | -3/+3 |
| | |||||
* | Revert "Small edit to the if statement simplification for blank? on the ↵ | Xavier Noria | 2011-05-06 | 1 | -1/+1 |
| | | | | | | | | | | | | | | Object class. An Object doesn't need to be nil and empty to be blank? just one or the other." Reason: the original code is correct, see !nil && !empty -> !(nil || empty) -> !blank That said, this example has too many negations for my linking. Think should be revised to be more positive and straightforward to read. This reverts commit a4b6e3d9be338e93320606f7cb14759b26ced8df. | ||||
* | Small edit to the if statement simplification for blank? on the Object ↵ | Caley Woods | 2011-05-06 | 1 | -1/+1 |
| | | | | class. An Object doesn't need to be nil and empty to be blank? just one or the other. | ||||
* | Grammar fixes for Object#in? documentation. | Cheah Chu Yeow | 2011-04-22 | 1 | -2/+2 |
| | |||||
* | NilClass is a singleton | Akira Matsuda | 2011-04-20 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' of git://github.com/lifo/docrails | Xavier Noria | 2011-04-19 | 3 | -20/+104 |
|\ | | | | | | | | | | | Conflicts: railties/guides/source/ajax_on_rails.textile railties/guides/source/generators.textile | ||||
| * | remove unwanted Example headers as per the guidelines, s/instaces of ↵ | Xavier Noria | 2011-04-19 | 1 | -21/+36 |
| | | | | | | | | NilClass/nil/ and friends, completes some rdocs | ||||
| * | commit copy-edit: simplifies blank? rdoc and revises formatting | Xavier Noria | 2011-04-19 | 1 | -24/+23 |
| | | |||||
| * | Revert "Formated docs" | Xavier Noria | 2011-04-19 | 1 | -9/+9 |
| | | | | | | | | | | | | | | Reason: "To be blank" and "to be empty" belongs to our everyday terminology, they go in regular font. This reverts commit 280a8709923d2bf707ec4d82ac1e5cb14941da3d. | ||||
| * | Formated docs | Sebastian Martinez | 2011-04-18 | 1 | -9/+9 |
| | | |||||
| * | oops fixed typo | Sebastian Martinez | 2011-04-18 | 1 | -1/+1 |
| | | |||||
| * | Fixed docs for NilClass#try | Sebastian Martinez | 2011-04-18 | 1 | -8/+8 |
| | | |||||
| * | Formatting docs | Sebastian Martinez | 2011-04-17 | 2 | -11/+11 |
| | | |||||
| * | Docs for +duplicable?+ | Sebastian Martinez | 2011-04-17 | 1 | -4/+28 |
| | | |||||
| * | Docs for NilClass#try | Sebastian Martinez | 2011-04-17 | 1 | -1/+13 |
| | | |||||
| * | Formatting examples | Sebastian Martinez | 2011-04-17 | 1 | -6/+12 |
| | | |||||
| * | Documented String#blank? | Sebastian Martinez | 2011-04-17 | 1 | -1/+7 |
| | | |||||
| * | Documented Hash#blank? | Sebastian Martinez | 2011-04-17 | 1 | -1/+6 |
| | | |||||
| * | Documented Array#blank? | Sebastian Martinez | 2011-04-17 | 1 | -1/+6 |
| | | |||||
| * | Documented TrueClass#blank? | Sebastian Martinez | 2011-04-17 | 1 | -1/+5 |
| | | |||||
| * | Documented FalseClass#blank? | Sebastian Martinez | 2011-04-17 | 1 | -1/+5 |
| | | |||||
| * | Documented NilClass#blank? | Sebastian Martinez | 2011-04-17 | 1 | -1/+5 |
| | | |||||
* | | Only rescue a thrown NoMethodError, don't preemptively check for #include?; ↵ | Jared McFarland | 2011-04-15 | 1 | -1/+4 |
| | | | | | | | | added tests | ||||
* | | added an exception to Object#in? to match the methods documentation | Jared McFarland | 2011-04-15 | 1 | -0/+1 |
| | | |||||
* | | Remove `#among?` from Active Support | Prem Sichanugrist | 2011-04-13 | 1 | -9/+0 |
|/ | | | | | | After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now. It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`. | ||||
* | Change Object#either? to Object#among? -- thanks to @jamesarosen for the ↵ | David Heinemeier Hansson | 2011-04-12 | 1 | -2/+2 |
| | | | | suggestion! | ||||
* | Add support for Object#in? and Object#either? in Active Support [#6321 ↵ | Prem Sichanugrist, Brian Morearty, John Reitano | 2011-04-11 | 1 | -0/+20 |
| | | | | | | | | | | | | state:committed] This will allow you to check if an object is included in another object or the list of objects or not. This patch is derived from patch by Brian Morearty and John Reitano on Lighthouse ticket. I've rewrite it and make sure that we support both 'another object' and 'list of objects' version, as it surely be useful to support both. | ||||
* | reorganizes the RDoc of Hash#to_param | Xavier Noria | 2011-03-07 | 1 | -6/+14 |
| |