aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/object
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* Remove dummy method definition in favor of RDoc hints:Aaron Patterson2010-09-111-7/+5
| | | | http://rdoc.rubyforge.org/RDoc/Parser/Ruby.html
* Object#returning has gone, it's already deprecated on 3-0-stableSantiago Pastorino2010-08-151-43/+0
|
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-143-8/+8
| | | | 's/[ \t]*$//' -i {} \;)
* Bring returning back to ease migration.José Valim2010-08-021-0/+43
|
* Object#returning removedSantiago Pastorino2010-07-252-44/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Hash#to_param is doesn't use sort anymore, some tests added for Hash#to_paramSantiago Pastorino2010-07-221-1/+1
|
* Define a convention for descendants and subclasses.José Valim2010-07-051-11/+0
| | | | | | The former should be symmetric with ancestors and include all children. However, it should not include self since ancestors + descendants should not have duplicated. The latter is symmetric to superclass in the sense it only includes direct children. By adopting a convention, we expect to have less conflict with other frameworks, as Datamapper. For this moment, to ensure ActiveModel::Validations can be used with Datamapper, we should always call ActiveSupport::DescendantsTracker.descendants(self) internally instead of self.descendants avoiding conflicts.
* AS json refactor, move to_json implementation to core_ext and a cleanup a ↵Santiago Pastorino2010-07-011-0/+19
| | | | bit the code
* remove executable permission from files that don't need it. [#4802 ↵rohit2010-06-201-0/+0
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* A small rdoc change made on lines 39 and 41 on ↵jacortinas2010-05-251-2/+2
| | | | activesupport/lib/active_support/core_ext/object/to_param.rb. It looks like the method name might have been changed, and the comments were never changed to coincide with the new method name.
* Add missing require to with_options [#4601 state:resolved]Carlos Antonio da Silva2010-05-151-0/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* moves Object#singleton_class to Kernel#singleton_class to match Ruby also ↵Xavier Noria2010-04-051-13/+0
| | | | there, same for #class_eval to simplify, and adds coverage for class_eval
* metaclass deprecated in 2.3.6Jeremy Kemper2010-02-251-14/+0
|
* Missed singleton_classJeremy Kemper2010-02-251-0/+13
|
* Use Object#singleton_class instead of #metaclass. Prefer Ruby's choice.Jeremy Kemper2010-02-251-5/+6
|
* Reinstate Object.subclasses_of and Class#descendents for plugin compat.Jeremy Kemper2010-02-091-0/+11
| | | | This reverts commits 7d312e54bad9c39634c137caec07dfc8df471650, 5f981ff0294ba45aa44ad15aa063970b29aeec44, f85f5dfc8ffefff174b695c6363211d342f77a57, 245bfafe335ff883f7a096eab95ac22fe2848679, and ec7c642f5fe60afc857aa64f1a9b4c2be56f9d70
* removes now void extending.rbXavier Noria2010-01-261-4/+0
|
* removes Object#extended_byXavier Noria2010-01-261-4/+0
|
* removes unused method Object#extend_with_included_modules_fromXavier Noria2010-01-261-4/+0
|
* deletes no void files removal.rb and class_test.rbXavier Noria2010-01-261-1/+0
|
* removes unused Class#descedentsXavier Noria2010-01-261-34/+0
|
* removes unused Object#subclasses_ofXavier Noria2010-01-261-12/+0
|
* removes unused Object#remove_subclasses_ofXavier Noria2010-01-261-4/+0
|
* Merge docrailsPratik Naik2010-01-171-0/+16
|
* fixes a couple of wrong requiresXavier Noria2010-01-011-1/+1
|
* to_param.rb needs active_support/core_ext/object/to_queryXavier Noria2010-01-011-0/+2
|
* extending.rb needs active_support/core_ext/object/blankXavier Noria2010-01-011-0/+1
|
* extending.rb needs active_support/core_ext/class/removal because it uses ↵Xavier Noria2010-01-011-0/+2
| | | | reachable?
* Added Object#presence that returns the object if it's #present? otherwise ↵David Heinemeier Hansson2009-12-271-2/+20
| | | | returns nil [DHH/Colin Kelley]
* Extract descendents a bit so it can take advantage of Rubinius' __subclasses__.Yehuda Katz2009-12-131-33/+40
|