aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/object
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-05-251-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 Martinez2011-05-231-1/+1
| |
* | don't raise NoMethodError the tried method doesn't existsdmathieu2011-05-211-0/+2
|/
* Prevent duplicable comments from being the opening paragraph for Object docsEvan Farrar2011-05-181-0/+2
|
* replaced eg using old router api with the one in the guides. Add info on ↵Vijay Dev2011-05-071-5/+8
| | | | nesting with_options
* revises comment for blank? methodVijay Dev2011-05-071-3/+3
|
* Revert "Small edit to the if statement simplification for blank? on the ↵Xavier Noria2011-05-061-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 Woods2011-05-061-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 Yeow2011-04-221-2/+2
|
* NilClass is a singletonAkira Matsuda2011-04-201-1/+1
|
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-04-193-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 Noria2011-04-191-21/+36
| | | | | | | | NilClass/nil/ and friends, completes some rdocs
| * commit copy-edit: simplifies blank? rdoc and revises formattingXavier Noria2011-04-191-24/+23
| |
| * Revert "Formated docs"Xavier Noria2011-04-191-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 docsSebastian Martinez2011-04-181-9/+9
| |
| * oops fixed typoSebastian Martinez2011-04-181-1/+1
| |
| * Fixed docs for NilClass#trySebastian Martinez2011-04-181-8/+8
| |
| * Formatting docsSebastian Martinez2011-04-172-11/+11
| |
| * Docs for +duplicable?+Sebastian Martinez2011-04-171-4/+28
| |
| * Docs for NilClass#trySebastian Martinez2011-04-171-1/+13
| |
| * Formatting examplesSebastian Martinez2011-04-171-6/+12
| |
| * Documented String#blank?Sebastian Martinez2011-04-171-1/+7
| |
| * Documented Hash#blank?Sebastian Martinez2011-04-171-1/+6
| |
| * Documented Array#blank?Sebastian Martinez2011-04-171-1/+6
| |
| * Documented TrueClass#blank?Sebastian Martinez2011-04-171-1/+5
| |
| * Documented FalseClass#blank?Sebastian Martinez2011-04-171-1/+5
| |
| * Documented NilClass#blank?Sebastian Martinez2011-04-171-1/+5
| |
* | Only rescue a thrown NoMethodError, don't preemptively check for #include?; ↵Jared McFarland2011-04-151-1/+4
| | | | | | | | added tests
* | added an exception to Object#in? to match the methods documentationJared McFarland2011-04-151-0/+1
| |
* | Remove `#among?` from Active SupportPrem Sichanugrist2011-04-131-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 Hansson2011-04-121-2/+2
| | | | suggestion!
* Add support for Object#in? and Object#either? in Active Support [#6321 ↵Prem Sichanugrist, Brian Morearty, John Reitano2011-04-111-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_paramXavier Noria2011-03-071-6/+14
|
* Improved docs for Hash#to_param methodDalibor Nasevic2011-03-061-3/+2
|
* removes merge conflictsXavier Noria2011-03-061-4/+0
|
* merges railsXavier Noria2011-03-051-0/+4
|\
| * copy-edits 108561fXavier Noria2011-03-051-1/+1
| |
| * Active Support typos.R.T. Lechow2011-03-051-1/+1
| |
| * Adds link to Object.blank? from Object.present?Jonathon D. Jones2011-03-051-1/+1
| |
* | Active Support typos.R.T. Lechow2011-03-041-1/+1
| |
* | Adds link to Object.blank? from Object.present?Jonathon D. Jones2011-03-031-1/+1
|/
* Add a forgotten word.Ben Orenstein2011-02-191-1/+1
|
* Add a clearer example for with_options (lifted from the Active Support guide).Ben Orenstein2011-02-191-5/+19
|
* :method: is not needed when RDoc can detect itSantiago Pastorino2010-12-021-5/+0
|
* Revert "Quick fix for not escaping []s (not ideal)"Santiago Pastorino2010-11-182-5/+3
| | | | | | | | | According to http://www.ietf.org/rfc/rfc2616.txt and http://tools.ietf.org/rfc/rfc3986.txt [ and ] are reserved characters and should be escaped using "%" HEX HEX This reverts commit 856d2fd874d72dd9f83204affff4edfef3308361 and 1ee9b40b18a0bed5bb10a0785f7e2730bac983f6..
* Add support for try to just yield the object to a block if no method is to ↵raggi2010-11-141-1/+13
| | | | be called. Kind of like a tap_if_present.
* Remove unused methodSantiago Pastorino2010-11-101-31/+0
|
* revises RDoc of Hash#to_param to be more precise about orderingXavier Noria2010-09-281-2/+2
|
* let Hash#to_param and Hash#to_query sort againXavier Noria2010-09-281-2/+3
| | | | | This was a regression introduced in 5c858220085dc4ddc1bec496747059dfbe32f1da. We bring sorting back because people rely on it, eg for constructing consistent cache keys.
* Use map, no need to use inject here.Emilio Tagua2010-09-221-4/+1
| | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>