Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix indent on test case [ci skip] | Carlos Antonio da Silva | 2014-01-28 | 1 | -2/+2 |
| | |||||
* | Merge pull request #13838 from vipulnsward/13197-fix-has-one-documentation | Damien Mathieu | 2014-01-28 | 1 | -1/+2 |
|\ | | | | | Add docs about behaviour of replacing a has_one associate object. | ||||
| * | Add docs about behaviour of replacing a has_one associate object, that the ↵ | Vipul A M | 2014-01-28 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | previous one is deleted even if the new one doesn't get persisted to database. Fixes #13197 . [ci skip] | ||||
* | | Merge pull request #13857 from teoljungberg/replace-file-exists-eh | Carlos Antonio da Silva | 2014-01-27 | 1 | -1/+1 |
|\ \ | | | | | | | Replace File.exists? with File.exist? | ||||
| * | | Replace File.exists? with File.exist? | Teo Ljungberg | 2014-01-27 | 1 | -1/+1 |
| | | | | | | | | | | | | To quell warnings on ruby 2.1 | ||||
* | | | Merge pull request #13855 from kuldeepaggarwal/reset_validators | Carlos Antonio da Silva | 2014-01-27 | 3 | -4/+4 |
|\ \ \ | | | | | | | | | use the new clear_validators! api everywhere to reset validators in tests | ||||
| * | | | use the new clear_validators! api everywhere to reset validators in tests | Kuldeep Aggarwal | 2014-01-28 | 3 | -4/+4 |
|/ / / | |||||
* | | | Merge pull request #13832 from kassio/setup-for-raise-missing-translations | Rafael Mendonça França | 2014-01-27 | 7 | -4/+33 |
|\ \ \ | | | | | | | | | Rails config for raise on missing translations | ||||
| * | | | Rails config for raise on missing translations | Kassio Borges | 2014-01-27 | 7 | -4/+33 |
| | | | | | | | | | | | | | | | | | | | | Add a config to setup whether raise exception for missing translation or not. | ||||
* | | | | Clear filtered request attributes between requests in tests | Andrew White | 2014-01-27 | 4 | -0/+29 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The request attributes filtered_parameters, filtered_env and filtered_path are memoized for performance reasons. However this can cause unusual behavior in tests where there are multiple calls to get, post, etc. Fixes #13803. | ||||
* | | | | docs, remove deprecation entry in favor of abe6484. [ci skip] | Yves Senn | 2014-01-27 | 1 | -5/+0 |
| | | | | |||||
* | | | | Fix doc markup of clear_validators! | Carlos Antonio da Silva | 2014-01-27 | 1 | -2/+2 |
| | | | | |||||
* | | | | Use the new clear_validators! api to reset validators in tests | Carlos Antonio da Silva | 2014-01-27 | 16 | -42/+33 |
| | | | | |||||
* | | | | Merge tests about multiple validation contexts | Carlos Antonio da Silva | 2014-01-27 | 1 | -10/+6 |
| | | | | |||||
* | | | | mention #13314 in 4.1 release notes. refs #12140. [ci skip] | Yves Senn | 2014-01-27 | 1 | -0/+3 |
| | | | | |||||
* | | | | Merge pull request #13754 from vpuzzella/master | Carlos Antonio da Silva | 2014-01-27 | 3 | -5/+45 |
|\ \ \ \ | |/ / / |/| | | | Ability to specify multiple contexts when defining a validation. | ||||
| * | | | Ability to specify multiple contexts when defining a validation. | Vince Puzzella | 2014-01-27 | 3 | -5/+45 |
| | | | | | | | | | | | | | | | | | | | | | | | | Example: validates_presence_of :name, on: [:update, :custom_validation_context] | ||||
* | | | | Merge pull request #13848 from huoxito/tell-value | Carlos Antonio da Silva | 2014-01-27 | 1 | -1/+1 |
|\ \ \ \ | |/ / / |/| | | | Display value when raising due to unscope() issues | ||||
| * | | | Display value when raising due to unscope() issues | Washington Luiz | 2014-01-27 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hopefully make it easier to debug errors. e.g Before: RuntimeError: unscope(where: "deleted_at") failed: unscoping String is unimplemented. After: RuntimeError: unscope(where: "deleted_at") failed: unscoping String "'t'='t'" is unimplemented. | ||||
* | | | | docs, clarify usage of `action_mailer.default_options`. [ci skip]. Closes ↵ | Yves Senn | 2014-01-27 | 1 | -4/+12 |
| | | | | | | | | | | | | | | | | #13820. | ||||
* | | | | Merge pull request #13849 from fgo/patch-12 | Guillermo Iguaran | 2014-01-26 | 1 | -1/+1 |
|\ \ \ \ | |/ / / |/| | | | Ruby on Rails 4.1 Release Notes: Fix spelling [ci skip] | ||||
| * | | | Ruby on Rails 4.1 Release Notes: Fix spelling [ci skip] | Francis Go | 2014-01-27 | 1 | -1/+1 |
|/ / / | |||||
* | | | Make ActiveSupport::TimeWithZone#xmlschema consistent | Andrew White | 2014-01-26 | 2 | -2/+6 |
| | | | | | | | | | | | | | | | | | | Both Time#xmlschema and DateTime#xmlschema can accept nil values for the fraction_digits parameter. This commit makes this so for TimeWithZone values as well. | ||||
* | | | Add support for JSON time_precision to Time and DateTime | Andrew White | 2014-01-26 | 4 | -7/+25 |
| | | | |||||
* | | | Add CHANGELOG entry for #11464 | Andrew White | 2014-01-26 | 1 | -0/+9 |
| | | | |||||
* | | | Rename subsecond_fraction_digits option to time_precision | Andrew White | 2014-01-26 | 4 | -8/+10 |
| | | | |||||
* | | | Consolidate JSON encoding tests in one file | Andrew White | 2014-01-26 | 2 | -46/+48 |
| | | | |||||
* | | | Customize subsecond digits when encoding DateWithTime | Parker Selbert | 2014-01-26 | 3 | -9/+30 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The subsecond fraction digits had been hardcoded to 3. This forced all timestamps to include the subsecond digits with no way to customize the value. While the subsecond format is part of the ISO8601 spec, it is not adhered to by all parsers (notably mobile clients). This adds the ability to customize the number of digits used, optionally setting them to 0 in order to eliminate the subsecond fraction entirely: ActiveSupport::JSON::Encoding.subsecond_fraction_digits = 0 | ||||
* | | | adds a section about booleans in the API guidelines [ci skip] | Xavier Noria | 2014-01-26 | 1 | -0/+47 |
| | | | |||||
* | | | API guidelines: revises warning about +...+ [ci skip] | Xavier Noria | 2014-01-26 | 1 | -1/+4 |
| | | | | | | | | | | | | | | | | | | Modern RDoc accepts a few more things in +...+. In particular symbols work now. The current regexp in RDoc is https://github.com/rdoc/rdoc/blob/v4.1.1/lib/rdoc/markup/attribute_manager.rb#L133. | ||||
* | | | revises references to :allow_(nil|blank) in some docs [ci skip] [Steven Yang ↵ | Xavier Noria | 2014-01-26 | 10 | -26/+12 |
| | | | | | | | | | | | | | | | | | | & Xavier Noria] Closes #11247. | ||||
* | | | Merge pull request #13846 from gsaks123/patch-1 | Robin Dupret | 2014-01-26 | 1 | -1/+1 |
|\ \ \ | |/ / |/| | | Fix order syntax in find_by_sql example [ci skip] | ||||
| * | | Fix order syntax in find_by_sql example | Greg Saks | 2014-01-26 | 1 | -1/+1 |
|/ / | |||||
* | | Maintain current timezone when changing time during DST overlap | Andrew White | 2014-01-26 | 4 | -3/+30 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently if a time is changed during DST overlap in the autumn then the method `period_for_local` will return the DST period. However if the original time is not DST then this can be surprising and is not what is generally wanted. This commit changes that behavior to maintain the current period if it's in the list of periods returned by `periods_for_local`. It is possible to alter the behavior of `period_for_local` by specifying a second argument but since we may be change from another time that could be either DST or not then this would give inconsistent results. Fixes #12163. | ||||
* | | Remove an extra comment [ci skip] | Robin Dupret | 2014-01-26 | 1 | -1/+0 |
| | | |||||
* | | Support underscored symbols in Action Mailer config | Andrew White | 2014-01-26 | 3 | -5/+37 |
| | | | | | | | | | | | | We allow the use of underscored symbols to represent classes throughout other parts of Rails so it seems incongruous that it's not supported in `register_interceptor` and `register_observer`. | ||||
* | | Don't use a class_attribute for ActionMailer::Base.preview_path | Andrew White | 2014-01-26 | 2 | -7/+3 |
| | | | | | | | | | | Since preview_path is read from ActionMailer::Base when previewing, subclasses can’t change it so don’t there's no need for the extra overhead imposed by using it. | ||||
* | | Add the ability to intercept emails before previewing | Andrew White | 2014-01-26 | 4 | -5/+109 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To support the ability for tools like CSS style inliners to operate on emails being previewed this commit adds a hook in a similar fashion to the existing delivery interceptor hook, e.g: class CSSInlineStyler def self.previewing_email(message) # inline CSS styles end end ActionMailer::Base.register_preview_interceptor CSSInlineStyler Fixes #13622. | ||||
* | | Merge pull request #13844 from Alamoz/config_grammar | Godfrey Chan | 2014-01-25 | 2 | -2/+2 |
|\ \ | | | | | | | thread -> threaded [ci skip] | ||||
| * | | Correct grammar from '... allowing both thread web servers ...' to '... ↵ | Adrien Lamothe | 2014-01-25 | 2 | -2/+2 |
|/ / | | | | | | | allowing both threaded web servers ...'. | ||||
* | | Merge pull request #13841 from robin850/patch-15 | Guillermo Iguaran | 2014-01-25 | 1 | -0/+6 |
|\ \ | |/ |/| | Add a missing changelog entry for #13825 [ci skip] | ||||
| * | Add a missing changelog entry for #13825 [ci skip] | Robin Dupret | 2014-01-25 | 1 | -0/+6 |
|/ | |||||
* | Add additional tests for #13824 | Andrew White | 2014-01-25 | 1 | -0/+26 |
| | |||||
* | Transform dashes to underscores in resource route names | Byron Bischoff | 2014-01-25 | 2 | -7/+17 |
| | | | | Fixes #13824 | ||||
* | Merge pull request #13772 from chancancode/fix_has_secure_password_for_good | Godfrey Chan | 2014-01-24 | 4 | -81/+132 |
|\ | | | | | Refactored validations rules for has_secure_password | ||||
| * | Some minor fixes | Godfrey Chan | 2014-01-24 | 2 | -3/+2 |
| | | |||||
| * | Removed old tests | Godfrey Chan | 2014-01-24 | 3 | -250/+121 |
| | | |||||
| * | Got all the new tests passing | Godfrey Chan | 2014-01-24 | 1 | -10/+8 |
| | | |||||
| * | Restored the ability to clear the password with user.password= nil (see the ↵ | Godfrey Chan | 2014-01-24 | 1 | -1/+3 |
| | | | | | | | | docs) | ||||
| * | Rewrote the tests for has_secure_password | Godfrey Chan | 2014-01-24 | 3 | -2/+183 |
| | |