aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | 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
| | | | |
| * | | | Added an example of exception situation on Array#sample docsSebastian Martinez2011-04-151-4/+5
| | | | |
| * | | | Improved Array#sample documentationSebastian Martinez2011-04-151-1/+3
| | | | |
* | | | | Add String#inquiry as a convenience method for turning a string into a ↵David Heinemeier Hansson2011-04-182-0/+14
| |_|/ / |/| | | | | | | | | | | StringInquirer object [DHH]
* | | | 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
| |/ / |/| |
* | | files are a special case and need whitespace to be significantAndre Arko2011-04-141-1/+1
| | |
* | | gsub is not needed (thanks @fxn!)Andre Arko2011-04-141-1/+1
| | |
* | | attributes no longer disappear if a tag contains whitespaceAndre Arko2011-04-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | old: Hash.from_xml("<tag foo='bar'>\n</tag>") => {"tag"=>"\n"} new: Hash.from_xml("<tag foo='bar'>\n</tag>") => {"tag"=>{"foo"=>"bar", "__content__"=>"\n"}
* | | 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!
* | Cant use inclusion in commands/application.rb as the frameworks havent all ↵David Heinemeier Hansson2011-04-111-0/+1
| | | | | | | | been required yet
* | 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.
* | added find_zone and find_zone! to AS timezones and changed the AS Railtie to ↵Josh Kalderimis2011-04-052-16/+19
| | | | | | | | | | | | use find_zone! as well as adding Railtie tests Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | Raise on invalid timezoneMarc-Andre Lafortune2011-04-051-8/+12
| | | | | | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* | s/ERb/ERB/gAkira Matsuda2011-04-031-1/+1
|/ | | | | The author of ERB sais, his eRuby implementation was originally named "ERb/ERbLight" and then renamed to "ERB" when started bundled as a Ruby standard lib. http://www2a.biglobe.ne.jp/~seki/ruby/erb.html
* adds a couple of missing AS dependenciesRolf Timmermans2011-03-121-0/+2
|
* move the conditional definition of Float#round downXavier Noria2011-03-092-2/+2
| | | | | | | Rails 3 cherry-picks as little as possible from Active Support. In particular the framework requires the files where extensions are exactly defined, rather than convenience entry points like float.rb and friends. Because of that, it is better to define conditionally rather than require conditionally.
* Use Rubys own Float#round method in versions 1.9 and aboveAndrei Kulakov2011-03-101-1/+1
|
* fixing some tests on ruby 1.9.3Aaron Patterson2011-03-071-0/+23
|
* reorganizes the RDoc of Hash#to_paramXavier Noria2011-03-071-6/+14
|
* Improved docs for Hash#to_param methodDalibor Nasevic2011-03-061-3/+2
|
* more "SSL everywhere" for GitHub URLsAkira Matsuda2011-03-071-2/+2
| | | | see: https://github.com/blog/738-sidejack-prevention-phase-2-ssl-everywhere
* removes merge conflictsXavier Noria2011-03-062-15/+0
|
* merges railsXavier Noria2011-03-056-34/+29
|\
| * revises the RDoc of Hash#reverse_mergeXavier Noria2011-03-051-13/+7
| |
| * copy-edits 108561fXavier Noria2011-03-051-1/+1
| |
| * Active Support typos.R.T. Lechow2011-03-053-3/+3
| |
| * Adds link to Object.blank? from Object.present?Jonathon D. Jones2011-03-051-1/+1
| |
| * Clarify comment by removing french reference ('a la'). Should improve ↵Ben Orenstein2011-03-051-1/+1
| | | | | | | | readability for non-native english speakers.
| * Example descriptions and their examples were flipped. Fix.Ben Orenstein2011-03-051-3/+3
| |
| * Correct example that did not do what it claimed. Rework explanation.Ben Orenstein2011-03-051-5/+5
| |
| * refactored Time#<=> and DateTime#<=> by removing unnecessary calls without ↵Diego Carrion2011-03-042-19/+4
| | | | | | | | | | | | losing performance Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
| * updated Time, Date and DateTime current methods in AS to use Time.zone and ↵Josh Kalderimis2011-02-284-8/+9
| | | | | | | | | | | | not Time.zone_default. [#6410 state:committed]
* | Active Support typos.R.T. Lechow2011-03-043-3/+3
| |
* | Adds link to Object.blank? from Object.present?Jonathon D. Jones2011-03-031-1/+1
| |
* | Clarify comment by removing french reference ('a la'). Should improve ↵Ben Orenstein2011-02-261-1/+1
| | | | | | | | readability for non-native english speakers.
* | Example descriptions and their examples were flipped. Fix.Ben Orenstein2011-02-261-3/+3
| |
* | Correct example that did not do what it claimed. Rework explanation.Ben Orenstein2011-02-261-5/+5
|/
* Merge branch 'master' of git://github.com/lifo/docrailsXavier Noria2011-02-212-10/+24
|\
| * Add a forgotten word.Ben Orenstein2011-02-191-1/+1
| |
| * Improve clarity of example. Make it follow guidelines for output display.Ben Orenstein2011-02-191-5/+5
| |
| * Add a clearer example for with_options (lifted from the Active Support guide).Ben Orenstein2011-02-191-5/+19
| |
* | added Range#count? for Ruby 1.8Diego Carrion2011-02-192-0/+4
|/ | | | Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* merges docrailsXavier Noria2011-02-181-1/+1
|\