aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_support_core_extensions.md
Commit message (Collapse)AuthorAgeFilesLines
...
* Minor English fixes in docs [ci skip]George Millo2014-11-171-1/+1
|
* The code was not up-to-dateAkira Matsuda2014-10-251-9/+7
|
* As of Unicode 6.3, Mongolian Vowel Separator is not whitespaceMatthew Draper2014-09-151-1/+1
| | | | | Ruby 2.2 knows this, and no longer matches it with [[:space:]], so it's not a good candidate for testing String#squish.
* :scissors: and from #16803 [ci skip]Zachary Scott2014-09-041-1/+1
|
* Document that method objects are not `duplicable?`Peter Jaros2014-09-041-1/+1
|
* copy edit AS core ext changes [ci skip]Vijay Dev2014-09-031-10/+9
|
* [ci skip] document truncate_wordsRashmi Yadav2014-08-241-0/+33
|
* [ci skip ]Document transform_values && transform_values!Rashmi Yadav2014-08-231-0/+14
|
* Merge pull request #16097 from nishantmodak/correct_mdZachary Scott2014-07-081-2/+2
|\ | | | | correct markdown usage [ci skip]
| * correct markdown usage [ci skip]Nishant Modak2014-07-091-2/+2
| |
* | Only reference time specific methods in the time section [ci skip]Sean Griffin2014-07-051-2/+2
| |
* | Remove *all* references to `Time.yesterday` [ci skip]Sean Griffin2014-07-051-1/+1
| |
* | `Time.today` -> `Date.today` in guides. [ci skip]Sean Griffin2014-07-051-1/+1
|/ | | | | Removed mentions of non-existent methods, also added a mention for `Date.current`, which is analagous to `Time.current`. Closes #16061.
* Rename Posts to Articles in Guides, continuation of 2d446e77 / #13774 [ci skip]John Kelly Ferguson2014-05-211-2/+2
|
* Replace first person point of view on guides.Hendy Tanata2014-05-161-3/+3
| | | | [skip ci]
* Remove falsy deprecation note in AS guides [ci skip]Genadi Samokovarov2014-05-131-1/+1
| | | This is no longer true as @jeremy removed the deprecation in 7a5601c.
* typo [ci skip]Xavier Noria2014-05-061-1/+1
|
* several enhancements to humanize [closes #12288]Xavier Noria2014-05-061-7/+22
| | | | | | | | | | * Strips leading underscores. * Changes some unnecessary gsub!s to sub!s. * Replaces some anchors ^, $ with \A, \z. * Documents that human inflection rules are applied. * Documents that words are downcased except acronyms. * Adds an example with an acronym. * Rewords docs.
* [ci skip] builtin -> built-inAkshay Vishnoi2014-04-201-2/+2
|
* Merge branch 'master' of github.com:rails/docrailsVijay Dev2014-04-181-3/+3
|\
| * Use path where extensions are defined, not usedSteven Harman2014-04-111-3/+3
| | | | | | | | | | | | | | For consistency with all other documentation, point to where these core extensions are defined, not where the example code comes from. [ci skip]
* | Add more test case for #demodulize, Improve documentationAkshay Vishnoi2014-04-111-0/+3
| |
* | [ci skip] Remove false documentationAkshay Vishnoi2014-04-111-14/+1
|/
* Improve collision explanation for Hash#transform_keys.Hendy Tanata2014-02-281-3/+3
| | | | | | | Based on comments at https://github.com/rails/docrails/commit/42417b0013819e573be9ffc5402e179003156e8e#commitcomment-5527251 [skip ci]
* Fix code alignment in duplicable? guide.Hendy Tanata2014-02-271-2/+2
| | | | [skip ci]
* Improve guide for Hash#transform_keys and related methods.Hendy Tanata2014-02-271-6/+15
| | | | [skip ci]
* fix guide active_support_core_extensions. add Note to String#indent [ci skip]tbpgr2014-02-141-0/+2
|
* Adding Hash#compact and Hash#compact! methodstinogomes2014-01-091-0/+10
| | | | | | | | | | | * Adding Hash#compact and Hash#compact! methods * Using Ruby 1.9 syntax on documentation * Updating guides for `Hash#compact` and `Hash#compact!` methods * Updating CHANGELOG for ActiveSupport * Removing unecessary protected method and lambda for `Hash#compact` implementations * Performing `Hash#compact` implementation - https://gist.github.com/tinogomes/8332883 * fixing order position * Fixing typo
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-12-201-1/+1
|\
| * Remove Rdoc formatting from markdown [ci skip]Harshad Sabne2013-11-291-1/+1
| | | | | | Use markdown formatting instead
* | Remove note about removed local_constant_names method from guides [ci skip]Carlos Antonio da Silva2013-12-021-1/+1
| |
* | Remove dead comment from AS extensions guide [ci skip]Carlos Antonio da Silva2013-12-021-2/+0
| |
* | Fix note about class attribute accessors deprecated file [ci skip]Carlos Antonio da Silva2013-12-021-1/+1
| |
* | Unify cattr and mattr accessors declarationsGenadi Samokovarov2013-12-021-2/+2
| |
* | [ci skip] Removing some gender sensitive object pronounsTejas Dinkar2013-12-021-1/+1
|/
* Merge remote-tracking branch 'docrails/master'Xavier Noria2013-11-241-7/+7
|\ | | | | | | | | | | Conflicts: activesupport/lib/active_support/core_ext/hash/deep_merge.rb activesupport/lib/active_support/core_ext/hash/keys.rb
| * [ci skip] Replace #=> with # =>Alex Johnson2013-11-121-7/+7
| |
* | Unify `cattr_*` interface: allow to pass a block to `cattr_reader`.Alexey Chernenkov2013-11-151-0/+9
| | | | | | | | | | | | | | | | | | Example: class A cattr_reader(:defr) { 'default_reader_value' } end A.defr # => 'default_reader_value'
* | Make it clear that require 'active_support' is required [ci-skip]Godfrey Chan2013-11-131-1/+4
|/
* Add +capitalize+ option to Inflector.humanizeclaudiob2013-11-061-0/+6
| | | | | | | So strings can be humanized without being capitalized: 'employee_salary'.humanize # => "Employee salary" 'employee_salary'.humanize(capitalize: false) # => "employee salary"
* AS guide: errataXavier Noria2013-10-311-1/+1
|
* Merge pull request #12203 from chancancode/eager_load_jsonJeremy Kemper2013-10-301-4/+2
|\ | | | | Eagerload active_support/json/encoding in active_support/core_ext/object/to_json
| * Moved all JSON core extensions into core_ext/object/jsonGodfrey Chan2013-09-131-4/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | TL;DR The primary driver is to remove autoload surprise. This is related to #12106. (The root cause for that ticket is that json/add defines Regexp#to_json among others, but here I'll reproduce the problem without json/add.) Before: >> require 'active_support/core_ext/to_json' => true >> //.as_json NoMethodError: undefined method `as_json' for //:Regexp from (irb):3 from /Users/godfrey/.rvm/rubies/ruby-2.0.0-p195/bin/irb:16:in `<main>' >> //.to_json => "\"(?-mix:)\"" >> //.as_json => "(?-mix:)" After: >> require 'active_support/core_ext/to_json' => true >> //.as_json => "(?-mix:)" This is because ActiveSupport::JSON is autoloaded the first time Object#to_json is called, which causes additional core extentions (previously defined in active_support/json/encoding.rb) to be loaded. When someone require 'active_support/core_ext', the expectation is that it would add certain methods to the core classes NOW. The previous behaviour causes additional methods to be loaded the first time you call `to_json`, which could cause nasty surprises and other unplesant side-effects. This change moves all core extensions in to core_ext/json. AS::JSON is still autoloaded on first #to_json call, but since it nolonger include the core extensions, it should address the aforementioned bug. *Requiring core_ext/object/to_json now causes a deprecation warnning*
* | Revert "Merge pull request #12480 from iwiznia/master"Jeremy Kemper2013-10-111-15/+0
| | | | | | | | | | This reverts commit e5f5a838b96a362534d9bb60d02334439ed9784c, reversing changes made to d7567f3290a50952494e9213556a1f283a6cf3a0.
* | flatten and flatten! methods for ActiveSupport::DurationIonatan Wiznia2013-10-111-0/+15
| |
* | Removed doc of diff method [ci skip]Rashmi Yadav2013-09-131-38/+0
| |
* | Updated guides with latest method [ci skip]Rashmi Yadav2013-09-131-2/+2
| |
* | Updated the file path [ci skip]Rashmi Yadav2013-09-131-4/+4
| |
* | Updated with latest method [ci skip]Rashmi Yadav2013-09-131-4/+5
|/
* Merge branch 'master' of github.com:rails/docrailsVijay Dev2013-09-131-1/+1
|\