aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/active_support_core_extensions.md
Commit message (Collapse)AuthorAgeFilesLines
...
* | 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
|\
| * `implemention` => `implementation`Vipul A M2013-09-031-1/+1
| |
* | Use Ruby on Rails Coding Conventions for code examples in the guidesPaul Nikitochkin2013-09-061-5/+5
|/ | | | | | | | * Indent after private/protected * Ruby >= 1.9 syntax for hashes * Prefer method { do_stuff } instead of method{do_stuff} for single-line blocks. [ci skip]
* Revert "Merge branch 'master' of github.com:rails/docrails"Vijay Dev2013-08-171-14/+51
| | | | | | | This reverts commit 70d6e16fbad75b89dd1798ed697e7732b8606fa3, reversing changes made to ea4db3bc078fb3093ecdddffdf4f2f4ff3e1e8f9. Seems to be a code merge done by mistake.
* Added new line [ci skip]Rashmi Yadav2013-08-141-0/+1
|
* Added docs for 'remove' method [ci skip]Rashmi Yadav2013-08-141-0/+11
|
* Typo fixMikhail Dieterle2013-07-281-1/+1
|
* Using markdown-style code quotesMikhail Dieterle2013-07-281-2/+2
|
* Removed doc of removed method diff [ci skip]Rashmi Yadav2013-07-241-38/+0
|
* Updated guides with latest method [ci skip]Rashmi Yadav2013-07-241-2/+2
|
* fixed file name references [ci skip]Rashmi Yadav2013-07-241-4/+4
|
* Updated guides with latest method [ci skip]Rashmi Yadav2013-07-231-4/+5
| | | for blank?
* copy editing AS guide [ci skip]Vijay Dev2013-06-141-19/+4
|
* Describe ActiveSupport core extensions for BigDecimal, JSON support, and ↵Jeff Cohen2013-06-081-1/+65
| | | | instance variable names.
* Consistent use of one space only after punctuationSunny Ripert2013-05-281-2/+2
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-05-121-1/+1
|\ | | | | | | | | Conflicts: activesupport/lib/active_support/callbacks.rb
| * ruby -> RubyPrathamesh Sonpatki2013-05-121-1/+1
| |
* | Revert the guide after removing varargs from `in?`.Brian Morearty2013-05-011-2/+1
|/
* more naming fixes.Yves Senn2013-04-301-3/+5
| | | | | | | | * it's Action Mailer not ActionMailer * it's Action Pack not ActionPack * it's Active Support not ActiveSupport /cc @fxn
* it's Active Record not ActiveRecordYves Senn2013-04-301-1/+3
| | | | /cc @fxn
* Changed grammar for better readabilityPrathamesh Sonpatki2013-04-141-1/+1
|
* Add option to Class#class_attribute for skipping the query methodAgis-2013-04-061-0/+2
|
* localised => localizedPrathamesh Sonpatki2013-03-251-1/+1
|
* do some typo fixingVipul A M2013-03-141-1/+1
|
* Added documentation for beginning_of_minute and end_of_minute to Active ↵Gagan Awhad2013-02-221-1/+19
| | | | Support Core Extensions guide
* Improve String#squish whitespaces matchingAntoine Lyset2013-01-221-0/+2
|
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2013-01-091-21/+2
|\ | | | | | | | | Conflicts: guides/source/getting_started.md
| * undecorated_table_name was moved and refactoredAkira Matsuda2013-01-041-3/+2
| |
| * Ruby 1.8 support had goneAkira Matsuda2013-01-041-18/+0
| | | | | | | | instance_variable_names remains for internal use, but it's not that useful for the users anymore
* | delegate to :class rather than 'self.class'Gosha Arinich2013-01-061-1/+1
| |
* | ERB::Util::h is no longer generated in scaffoldRyunosuke SATO2013-01-051-3/+3
|/
* Remove deprecated Time methods from the guides [ci skip]Pablo Torres2012-12-111-22/+2
| | | | | | | Don't use: * Time.time_with_datetime_fallback * Time.utc_time * Time.local_time
* remove attr_protected reference from AS Core Extensions guide [ci skip]Francesco Rodriguez2012-12-101-7/+0
|
* Fill out Active Support Core Extensions 'you will learn' list.Steve Klabnik2012-12-071-0/+5
|
* Remove references to Rails versions.Steve Klabnik2012-12-071-5/+3
| | | | | | | | There's no reason for guides to reference old behaviors. They should be current as of the versions of Rails that they ship with, and including older information just clutters thing. I discussed this change with @fxn and he agrees.
* Merge branch 'master' of github.com:lifo/docrailsVijay Dev2012-12-011-1/+1
|\ | | | | | | | | Conflicts: guides/source/active_record_validations.md
| * Normalize on 'After reading this guide, you will know:'Steve Klabnik2012-11-291-1/+1
| | | | | | | | | | We have three or four different introduction sentences to the guides. After this commit, we use the same one everywhere.
* | Fix typo in AS guide [ci skip]Carlos Antonio da Silva2012-12-011-2/+2
| |
* | copy-edits the docs of 9ee0ffbXavier Noria2012-12-011-7/+5
| |