Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | several enhancements to humanize [closes #12288] | Xavier Noria | 2014-05-06 | 1 | -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-in | Akshay Vishnoi | 2014-04-20 | 1 | -2/+2 | |
| | ||||||
* | Merge branch 'master' of github.com:rails/docrails | Vijay Dev | 2014-04-18 | 1 | -3/+3 | |
|\ | ||||||
| * | Use path where extensions are defined, not used | Steven Harman | 2014-04-11 | 1 | -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 documentation | Akshay Vishnoi | 2014-04-11 | 1 | -0/+3 | |
| | | ||||||
* | | [ci skip] Remove false documentation | Akshay Vishnoi | 2014-04-11 | 1 | -14/+1 | |
|/ | ||||||
* | Improve collision explanation for Hash#transform_keys. | Hendy Tanata | 2014-02-28 | 1 | -3/+3 | |
| | | | | | | | Based on comments at https://github.com/rails/docrails/commit/42417b0013819e573be9ffc5402e179003156e8e#commitcomment-5527251 [skip ci] | |||||
* | Fix code alignment in duplicable? guide. | Hendy Tanata | 2014-02-27 | 1 | -2/+2 | |
| | | | | [skip ci] | |||||
* | Improve guide for Hash#transform_keys and related methods. | Hendy Tanata | 2014-02-27 | 1 | -6/+15 | |
| | | | | [skip ci] | |||||
* | fix guide active_support_core_extensions. add Note to String#indent [ci skip] | tbpgr | 2014-02-14 | 1 | -0/+2 | |
| | ||||||
* | Adding Hash#compact and Hash#compact! methods | tinogomes | 2014-01-09 | 1 | -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/docrails | Vijay Dev | 2013-12-20 | 1 | -1/+1 | |
|\ | ||||||
| * | Remove Rdoc formatting from markdown [ci skip] | Harshad Sabne | 2013-11-29 | 1 | -1/+1 | |
| | | | | | | Use markdown formatting instead | |||||
* | | Remove note about removed local_constant_names method from guides [ci skip] | Carlos Antonio da Silva | 2013-12-02 | 1 | -1/+1 | |
| | | ||||||
* | | Remove dead comment from AS extensions guide [ci skip] | Carlos Antonio da Silva | 2013-12-02 | 1 | -2/+0 | |
| | | ||||||
* | | Fix note about class attribute accessors deprecated file [ci skip] | Carlos Antonio da Silva | 2013-12-02 | 1 | -1/+1 | |
| | | ||||||
* | | Unify cattr and mattr accessors declarations | Genadi Samokovarov | 2013-12-02 | 1 | -2/+2 | |
| | | ||||||
* | | [ci skip] Removing some gender sensitive object pronouns | Tejas Dinkar | 2013-12-02 | 1 | -1/+1 | |
|/ | ||||||
* | Merge remote-tracking branch 'docrails/master' | Xavier Noria | 2013-11-24 | 1 | -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 Johnson | 2013-11-12 | 1 | -7/+7 | |
| | | ||||||
* | | Unify `cattr_*` interface: allow to pass a block to `cattr_reader`. | Alexey Chernenkov | 2013-11-15 | 1 | -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 Chan | 2013-11-13 | 1 | -1/+4 | |
|/ | ||||||
* | Add +capitalize+ option to Inflector.humanize | claudiob | 2013-11-06 | 1 | -0/+6 | |
| | | | | | | | So strings can be humanized without being capitalized: 'employee_salary'.humanize # => "Employee salary" 'employee_salary'.humanize(capitalize: false) # => "employee salary" | |||||
* | AS guide: errata | Xavier Noria | 2013-10-31 | 1 | -1/+1 | |
| | ||||||
* | Merge pull request #12203 from chancancode/eager_load_json | Jeremy Kemper | 2013-10-30 | 1 | -4/+2 | |
|\ | | | | | Eagerload active_support/json/encoding in active_support/core_ext/object/to_json | |||||
| * | Moved all JSON core extensions into core_ext/object/json | Godfrey Chan | 2013-09-13 | 1 | -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 Kemper | 2013-10-11 | 1 | -15/+0 | |
| | | | | | | | | | | This reverts commit e5f5a838b96a362534d9bb60d02334439ed9784c, reversing changes made to d7567f3290a50952494e9213556a1f283a6cf3a0. | |||||
* | | flatten and flatten! methods for ActiveSupport::Duration | Ionatan Wiznia | 2013-10-11 | 1 | -0/+15 | |
| | | ||||||
* | | Removed doc of diff method [ci skip] | Rashmi Yadav | 2013-09-13 | 1 | -38/+0 | |
| | | ||||||
* | | Updated guides with latest method [ci skip] | Rashmi Yadav | 2013-09-13 | 1 | -2/+2 | |
| | | ||||||
* | | Updated the file path [ci skip] | Rashmi Yadav | 2013-09-13 | 1 | -4/+4 | |
| | | ||||||
* | | Updated with latest method [ci skip] | Rashmi Yadav | 2013-09-13 | 1 | -4/+5 | |
|/ | ||||||
* | Merge branch 'master' of github.com:rails/docrails | Vijay Dev | 2013-09-13 | 1 | -1/+1 | |
|\ | ||||||
| * | `implemention` => `implementation` | Vipul A M | 2013-09-03 | 1 | -1/+1 | |
| | | ||||||
* | | Use Ruby on Rails Coding Conventions for code examples in the guides | Paul Nikitochkin | 2013-09-06 | 1 | -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 Dev | 2013-08-17 | 1 | -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 Yadav | 2013-08-14 | 1 | -0/+1 | |
| | ||||||
* | Added docs for 'remove' method [ci skip] | Rashmi Yadav | 2013-08-14 | 1 | -0/+11 | |
| | ||||||
* | Typo fix | Mikhail Dieterle | 2013-07-28 | 1 | -1/+1 | |
| | ||||||
* | Using markdown-style code quotes | Mikhail Dieterle | 2013-07-28 | 1 | -2/+2 | |
| | ||||||
* | Removed doc of removed method diff [ci skip] | Rashmi Yadav | 2013-07-24 | 1 | -38/+0 | |
| | ||||||
* | Updated guides with latest method [ci skip] | Rashmi Yadav | 2013-07-24 | 1 | -2/+2 | |
| | ||||||
* | fixed file name references [ci skip] | Rashmi Yadav | 2013-07-24 | 1 | -4/+4 | |
| | ||||||
* | Updated guides with latest method [ci skip] | Rashmi Yadav | 2013-07-23 | 1 | -4/+5 | |
| | | | for blank? | |||||
* | copy editing AS guide [ci skip] | Vijay Dev | 2013-06-14 | 1 | -19/+4 | |
| | ||||||
* | Describe ActiveSupport core extensions for BigDecimal, JSON support, and ↵ | Jeff Cohen | 2013-06-08 | 1 | -1/+65 | |
| | | | | instance variable names. | |||||
* | Consistent use of one space only after punctuation | Sunny Ripert | 2013-05-28 | 1 | -2/+2 | |
| | ||||||
* | Merge branch 'master' of github.com:lifo/docrails | Vijay Dev | 2013-05-12 | 1 | -1/+1 | |
|\ | | | | | | | | | Conflicts: activesupport/lib/active_support/callbacks.rb | |||||
| * | ruby -> Ruby | Prathamesh Sonpatki | 2013-05-12 | 1 | -1/+1 | |
| | | ||||||
* | | Revert the guide after removing varargs from `in?`. | Brian Morearty | 2013-05-01 | 1 | -2/+1 | |
|/ |