aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_support_core_extensions.md
Commit message (Collapse)AuthorAgeFilesLines
* Missing dots [ci skip] (#29414)Vipul A M2017-06-111-4/+4
|
* Merge pull request #29268 from gsamokovarov/delegate-missing-to-guidesVipul A M2017-06-111-0/+21
|\ | | | | Document Module#delegate_missing_to in the guides [ci skip]
| * Document Module#delegate_missing_to in the guidesGenadi Samokovarov2017-06-111-0/+21
| | | | | | | | | | Added a small section for it in the `Active Support Core Extensions` guide. [ci skip]
* | Use mattr_accessor default: option throughout the projectGenadi Samokovarov2017-06-031-5/+3
|/
* Revert "Merge pull request #27686 from koic/friendly_bigdecimal_inspect"Kasper Timm Hansen2017-01-151-9/+1
| | | | | | | | | | | | | The exact inspect output of a BigDecimal is out of scope for what we're trying to communicate about `dup` and `duplicable?` here. Adding two examples distracts is disctracting, so keep the docs from before since our minimal version is Ruby 2.2.2. [ Koichi ITO, Jon Moss, Kasper Timm Hansen ] This reverts commit 2163874dedaf83e67599c2930c2686caa165fbad, reversing changes made to 46fdbc5290335ed38fa9fe2b6b0ef8abe4eccb1b.
* Several representation of BigDecimal has changed in Ruby 2.4.0+ [ci skip]Koichi ITO2017-01-151-1/+9
| | | | cf. https://github.com/ruby/bigdecimal/pull/42
* [ci skip] Rejigger the dublicable? wording a bit.Kasper Timm Hansen2016-12-291-9/+12
|
* Update list of `duplicable?` objects in AS core_ext guide [ci skip]utilum2016-12-231-17/+31
| | | | | | | | | | | Complex and Rational objects can not be duplicated. Duplicable objects in Ruby 2.4.0 include: - most numbers - symbols - `nil` - `true` - `false`
* remove `alias_method_chain` from guide [ci skip]yuuji.yaginuma2016-11-151-50/+0
| | | | Follow up to 7c848e6dd493ff236d33a0410a92f4c3e5cc3c7f
* [ci skip] Fix return values of Hash Extensions examplesBruno Facca2016-10-201-4/+4
| | | | | | | | The hashes returned in some examples of the following sections had items in a different order than their receivers. That may mislead readers into believing those methods will not preserve element order. Extensions to Hash/Working with Keys/transform_keys and transform_keys! Extensions to Hash/Working with Keys/stringify_keys and stringify_keys! Extensions to Hash/Working with Keys/symbolize_keys and symbolize_keys! Extensions to Hash/Slicing
* [ci skip] Simply formatting documentsNeodelf2016-09-061-1/+1
|
* Merge branch 'master' of github.com:rails/docrailsVijay Dev2016-08-021-1/+1
|\
| * The `to_query` method on Array objects uses `key[] as the prefix, not ↵Prathamesh Sonpatki2016-07-101-1/+1
| | | | | | | | `_key_[]` [ci skip]
* | define Range#match? if Ruby < 2.4Xavier Noria2016-07-221-0/+18
|/ | | | | | See the rationale in the documentation included in this patch. We are going to gradually introduce this predicate in the code base.
* [ci skip] When instance_reader is false, attribute can still be assigned by ↵Prathamesh Sonpatki2016-06-151-1/+2
| | | | the instance objects
* remove deprecated `Module#qualified_const_` from guide [ci skip]yuuji.yaginuma2016-05-231-71/+0
| | | | Follow up to #17845.
* Support for unified Integer class in Ruby 2.4+Jeremy Daer2016-05-181-4/+3
| | | | | | | | Ruby 2.4 unifies Fixnum and Bignum into Integer: https://bugs.ruby-lang.org/issues/12005 * Forward compat with new unified Integer class in Ruby 2.4+. * Backward compat with separate Fixnum/Bignum in Ruby 2.2 & 2.3. * Drops needless Fixnum distinction in docs, preferring Integer.
* Use consistent term [skip ci]Erol Fornoles2016-05-081-1/+1
|
* Remove log-related stuff from ActiveSupport::DependenciesAaron Ang2016-03-151-2/+0
| | | | | In this patch, all log-related stuff in `ActiveSupport::Dependencies` is removed because the logging is no longer useful.
* Deprecate `Module.local_constants`yui-knk2016-03-011-23/+0
| | | | | After Ruby 1.9, we can easily get the constants that have been defined locally by `Module.constants(false)`.
* [ci skip] Updating edge rails guides to include `on_weekday?` on Date, Time ↵Chirag Aggarwal2016-02-171-1/+5
| | | | | | and DateTime [ci skip] Adding `on_weekend?` method in edge rails guides
* rename to 'second_to_last' and 'third_to_last'Brian Christian2016-02-101-1/+1
|
* allow Array.penultimate and Array.antepenultiate access methodsBrian Christian2016-02-091-1/+1
|
* Add support for Petabyte and Exabyte in number to human sizeAkshay Vishnoi2015-12-221-6/+8
|
* ApplicationRecord documentation passGenadi Samokovarov2015-12-171-6/+6
| | | | | | | This is a pass over the documentation which fills the missing gaps of `ApplicationRecord`. [ci skip]
* Remove ActionController::TestCase from documentationeileencodes2015-12-121-8/+8
| | | | | | | | | | | | | | | | | | In Rails 5.1 `ActionController::TestCase` will be moved out of Rails into it's own gem. Please use `ActionDispatch::IntegrationTest` going foward. Because this will be moved to a gem I used `# :stopdoc:` instead of deleting the documentation. This will remove it from the Rails documentation but still leave the method documented for when we move it to a gem. Guides have been updated to use the routing structure used in Integration and all test examples have been updated to inherit from `ActionDispatch::IntegrationTest` instead of `ActionController::TestCase. Fixes #22496
* Parameterize with options to preserve case of stringSwaathi K2015-11-071-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | Added test cases Using kwargs instead of three seperate functions Updated parameterize in transliterate.rb Updated parameterize in transliterate.rb Added deprecation warnings and updating RDoc+Guide Misspelled separtor. Fixed. Deprecated test cases and added support to parameterize with keyword parameters Squashing commits. Fixed test cases and added deprecated test cases Small changes to Gemfile.lock and CHANGELOG Update Gemfile.lock
* document `try!` in ActiveSupport core ext guideSean Linsley2015-11-041-0/+7
| | | https://twitter.com/avdi/status/660141673993777156
* Fix minor typo from #20038Sean Griffin2015-10-201-2/+2
| | | | We use one period after spaces, not two.
* Merge pull request #20038 from imanel/numeric_prependSean Griffin2015-10-201-11/+3
|\ | | | | Use Module.prepend instead of alias_method and unify behavior of all Numeric extensions
| * Unify behavior of all Numeric extensions and use Module.prepend instead of ↵Bernard Potocki2015-05-281-11/+3
| | | | | | | | alias_method
* | [ci skip] Fix typo in deep_dup docsEric Turner2015-10-121-1/+1
| |
* | fix `to_time` output in ActiveSupport guide. Since ↵amitkumarsuroliya2015-09-201-3/+3
| | | | | | | | | | https://github.com/rails/rails/commit/48583f8bf74d1cefefea3cd6591bd546a9eaff6c , to_time returns times formatted as YYYY-MM-DD HH:MM:SS UTC [ci skip] `to_time` method returns in `YYYY-MM-DD HH:MM:SS UTC` format after this commit https://github.com/rails/rails/commit/48583f8bf74d1cefefea3cd6591bd546a9eaff6c .
* | Revert "[ci skip] Fix to `a, b or c` format"Vijay Dev2015-08-241-1/+1
| | | | | | | | | | | | | | This reverts commit 9876a16904f817e11713bc85479dd70da1de454b. Reason: Oxford commas are preferred. This is now documented in the documentation guidelines.
* | [ci skip] Fix to `a, b or c` formatyui-knk2015-07-301-1/+1
| |
* | Fix core_text -> core_extSeiei Miyagi2015-06-081-1/+1
| | | | | | | | [ci skip]
* | Add missing NOTE for Time extensions' locationPierre2015-06-071-0/+2
| |
* | Updating the guides for Enumerable#pluckKevin Deisz2015-05-281-0/+10
| |
* | Merge branch 'master' of github.com:rails/docrailsVijay Dev2015-05-081-8/+8
|\ \ | |/ |/|
| * [ci skip] `deep_dup` is instance method of `Hash`yui-knk2015-04-221-1/+1
| |
| * [ci skip] `deep_dup` is instance method of `Array`yui-knk2015-04-211-1/+1
| |
| * [ci skip] Fix returned values of code sampleyui-knk2015-04-191-6/+6
| |
* | Merge pull request #19799 from yui-knk/fix/wrap_doc2Arthur Nogueira Neves2015-04-191-2/+2
|\ \ | | | | | | [ci skip] Fix docs and guide about 'Array.wrap'
| * | [ci skip] Fix docs and guide about 'Array.wrap'yui-knk2015-04-191-2/+2
| | |
* | | [ci skip] Replace `list` with `array`yui-knk2015-04-181-1/+1
|/ /
* / [ci skip] Update code example of Enumerable#withoutyui-knk2015-04-171-1/+1
|/
* [ci skip] Remove Extensions to `Proc` chapter sectionyui-knk2015-04-061-47/+0
| | | | `Proc#bind` is removed with 4.1 release
* [ci skip] Replace `reraised` with `not captured`yui-knk2015-04-021-1/+1
|
* Deprecate alias_method_chain in favour of Module#prependKir Shatrov2015-03-221-2/+2
| | | …as discussed #19413
* Add Enumerable#withoutTodd Bealmear2015-03-011-0/+11
|