aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* remove useless ivar setAaron Patterson2014-07-151-1/+0
|
* RouteSet should be in charge of constructing the dispatherAaron Patterson2014-07-153-10/+15
| | | | Now we can override how requests are dispatched in the routeset object
* Merge pull request #16180 from rafaelfranca/rm-dirtyRafael Mendonça França2014-07-156-18/+79
|\ | | | | Improve Active Model Dirty API.
| * Deprecate `reset_#{attribute}` in favor of `restore_#{attribute}`.Rafael Mendonça França2014-07-155-13/+38
| | | | | | | | | | | | | | | | | | These methods may cause confusion with the `reset_changes` that behaves differently of them. Also rename undo_changes to restore_changes to match this new set of methods.
| * Deprecate ActiveModel::Dirty#reset_changes in favor of ↵Rafael Mendonça França2014-07-154-6/+42
| | | | | | | | | | | | | | | | | | #clear_changes_information This method name is causing confusion with the `reset_#{attribute}` methods. While `reset_name` set the value of the name attribute for the previous value the `reset_changes` only discard the changes and previous changes.
* | Add CHANGELOG entry for #13392 [ci skip]Rafael Mendonça França2014-07-151-0/+7
| |
* | Keep quietly and capture undeprecated on your suiteRafael Mendonça França2014-07-1510-21/+140
| |
* | Deprecate reporting methods for silencing output as they aren't thread safeTom Meier2014-07-151-0/+10
| |
* | Merge pull request #16129 from rafaelfranca/config_forRafael Mendonça França2014-07-153-0/+134
|\ \ | | | | | | Add Rails::Application#config_for
| * | Add Rails::Application#config_forRafael Mendonça França2014-07-153-0/+134
| |/ | | | | | | | | This is a convenience for loading configuration for the current Rails environment.
* | Merge branch 'master' of git://github.com/rails/railsGodfrey Chan2014-07-154-6/+24
|\| | | | | | | | | Conflicts: activerecord/CHANGELOG.md
| * Merge branch 'jbrowning-fix_mariadb_rename_index'Rafael Mendonça França2014-07-154-6/+24
| |\ | | | | | | | | | Closes #15936
| | * Predicate methods don't need to return `true` / `false`Rafael Mendonça França2014-07-151-1/+1
| | |
| | * Fix version detection for RENAME INDEX support. Fixes #15931.Jeff Browning2014-07-154-6/+24
| | |
* | | Document the change in `nil` handling for serialized attributesGodfrey Chan2014-07-152-9/+17
| | | | | | | | | | | | Also updated the test case to reflect that
* | | Fixed SQL syntax for postgresqlGodfrey Chan2014-07-151-1/+1
| | |
* | | Merge pull request #16162 from chancancode/fix_json_coderGodfrey Chan2014-07-152-1/+19
| | | | | | | | | | | | Fixed JSON coder when loading NULL from DB
* | | Revert "Revert "Merge pull request #16059 from jenncoop/json-serialized-attr""Godfrey Chan2014-07-155-2/+76
|/ / | | | | | | | | | | | | This reverts commit 6f3c64eeb1dc8288dae49f114aaf619adc7dcb7f. Conflicts: activerecord/CHANGELOG.md
* / Add CHANGELOG entry for #15266Godfrey Chan2014-07-151-0/+5
|/
* Merge pull request #15266 from dv/use_counter_cache_for_empty_callGodfrey Chan2014-07-152-0/+15
|\ | | | | If a counter_cache exists, use it for #empty?
| * If a counter_cache exists, use it for #empty?David Verhasselt2014-06-102-0/+15
| |
* | Merge pull request #16142 from andreychernih/extend-server-optionsRafael Mendonça França2014-07-151-7/+11
|\ \ | | | | | | Add ability to extend `rails server` command options parser
| * | Add ability to extend `rails server` command options parserAndrey Chernih2014-07-111-7/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this change it will be possible to add additional options to the `option_parser` like this: require 'rails/commands/server' module Rails class Server < ::Rack::Server class Options def option_parser_with_open(options) parser = option_parser_without_open options parser.on('-o', '--open', 'Open in default browser') { options[:open] = true } parser end alias_method_chain :option_parser, :open end def start_with_open start_without_open do `open http://localhost:3000` if options[:open] end end alias_method_chain :start, :open end end
* | | Merge pull request #16175 from skorks/log_digestor_as_debugRafael Mendonça França2014-07-151-1/+1
|\ \ \ | | | | | | | | Log digest as :debug instead of :info
| * | | Log digest as :debug instead of :infoAlan Skorkin2014-07-151-1/+1
| | | |
* | | | Merge pull request #16161 from jpawlyn/masterAndrew White2014-07-153-1/+14
|\ \ \ \ | | | | | | | | | | Fix empty host for an asset url when asset_host proc returns nil
| * | | | Return an absolute instead of relative path from an asset url in the case of ↵Jolyon Pawlyn2014-07-153-1/+14
| | | | | | | | | | | | | | | | | | | | the `asset_host` proc returning nil
* | | | | Merge pull request #16174 from tgxworld/doc_fixZachary Scott2014-07-141-2/+2
|\ \ \ \ \ | |_|/ / / |/| | | | [ci skip] Fix grammar of eager loading for ActiveRecord::Associations
| * | | | [CI SKIP] Doc fix.Guo Xiang Tan2014-07-151-2/+2
|/ / / /
* | | | Merge pull request #16089 from ↵Aaron Patterson2014-07-143-101/+158
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | eileencodes/refactor-reflections-from-sub-classes-to-delegates Refactor reflections from sub classes to delegates
| * | | | Begin refactoring ThroughReflectioneileencodes2014-07-083-101/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows us to decouple AssociationReflection and ThroughReflection making ThroughReflection it's own Reflection bucket in a way. The benefit of this is to be able to remove checks against the macro's symbol for exmaple `macro == :belongs_to`. Get all tests passing again Some of the methods that used to be inherited from MacroReflection through AssociationReflection were no longer getting passed through. They needed to be duplicated into the ThroughReflection. I will extract these out into a separate class. Refactor shared methods into strategy object Now that we've separated ThroughReflection and AssociationReflection we can combine shared methods into one class to avoid duplication. Break out class for each type of reflection This creates a class for each reflection type (has_many, has_one, belongs_to and habtm). We then can remove the need to set the macro symbol in each initialization. Tests were updated to reflect these changes because creation of these reflections is now different. Remove need for @collection instance var We now define `collection?` as `false` by default and set it to `true` in `has_and_belongs_to_many` and `has_many` reflections. This removes the need for the `@collection` instance variable. Raise exception on unknown macro types We shouldn't accept just any macro when creating reflections. An unrecongnized AssociationReflection raises an error. Tests in `reflection_test` were updated to reflect these new changes. `:has_and_belongs_to_many` macro tests were removed because we no longer internally return HABTM.
* | | | | Merge pull request #16168 from greysteil/stash-path-infoMatthew Draper2014-07-143-2/+15
|\ \ \ \ \ | | | | | | | | | | | | Stash original path in `ShowExceptions` middleware
| * | | | | Stash original path in `ShowExceptions` middlewareGrey Baker2014-07-143-2/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `ActionDispatch::ShowExceptions` overwrites `PATH_INFO` with the status code for the exception defined in `ExceptionWrapper`, so the path the user was visiting when an exception occurred was not previously available to any custom exceptions_app. The original `PATH_INFO` is now stashed in `env["action_dispatch.original_path"]`.
* | | | | | Merge pull request #16167 from yahonda/ora972_facesMatthew Draper2014-07-143-4/+5
|\ \ \ \ \ \ | | | | | | | | | | | | | | Address ORA-00972: identifier is too long when tested with Oracle
| * | | | | | Address ORA-00972: identifier is too long when tested with OracleYasuo Honda2014-07-143-4/+5
|/ / / / / / | | | | | | | | | | | | | | | | | | by using shorter attribute names.
* | | | | | Merge pull request #16127 from Envek/fix_16111Matthew Draper2014-07-143-1/+32
|\ \ \ \ \ \ | | | | | | | | | | | | | | Dump PostgreSQL primary key with custom function as a default.
| * | | | | | Dump PostgreSQL primary key with custom function as a default.Andrey Novikov2014-07-113-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For example, if use pgcrypto extension in PostgreSQL 9.4 beta 1, where uuid-ossp extension isn't available for moment of writing, and thus to use a gen_random_uuid() method as a primary key default. In this case schema dumper wasn't able to correctly reconstruct create_table statement and lost primary key constraint on schema load. Fixes #16111.
* | | | | | | Merge pull request #16156 from mechanicles/document-improvementZachary Scott2014-07-131-1/+1
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | [ci skip] Improve documentation consistency for ActiveModel::Errors
| * | | | | | | [ci skip] Little bit doc code improvement.Santosh Wadghule2014-07-141-1/+1
| | |/ / / / / | |/| | | | |
* | | | | | | Format pass on 4.2 release notes [ci skip]Godfrey Chan2014-07-131-157/+163
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Leave two blank lines between sections/packages for readibility. * Always indent bullet points with four spaces. This allows multi-paragraph points to align properly (see #16103), and it is the same as the format we already use in CHANGELOGs. Doing this consistently sets an easy precedent for future contributors to follow. * Always put the PR/commit link on its own line in the source. If the bullet point spans multiple paragraphs, put it on its own paragraph at the end. [Godfrey Chan & Juanito Fatas]
* | | | | | | Merge pull request #16155 from mechanicles/fix-typosZachary Scott2014-07-133-4/+4
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | [ci skip] Fix typos like `a html` to `an html` and 'an mail' to 'an email'.
| * | | | | | Fix typos like `a html` to `an html` and 'an mail' to 'an email'. [ci skip]Santosh Wadghule2014-07-143-4/+4
|/ / / / / /
* | | | | | Merge pull request #16150 from sferik/fix-testsMatthew Draper2014-07-131-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | Fix tests broken in #16149
| * | | | | | Fix tests broken in https://github.com/rails/rails/pull/16149Erik Michaels-Ober2014-07-121-1/+1
|/ / / / / /
* | | | | | Merge pull request #16149 from sferik/refactor-transform_valuesGuillermo Iguaran2014-07-124-2/+50
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | | Refactor Hash#transform_values and Hash#transform_values!
| * | | | | Return an Enumerator if no block is givenErik Michaels-Ober2014-07-124-1/+49
| | | | | |
| * | | | | Don't construct a Proc if no block is givenErik Michaels-Ober2014-07-121-1/+1
|/ / / / /
* | | | | Merge pull request #16147 from seuros/templatesMatthew Draper2014-07-122-0/+2
|\ \ \ \ \ | | | | | | | | | | | | [Bug report templates] Added rack master to the Gemfile [ci skip]
| * | | | | [Bug report templates] Added rack master to the GemfileAbdelkader Boudih2014-07-122-0/+2
|/ / / / /
* | | | | Merge branch 'master' of github.com:rails/docrailsVijay Dev2014-07-121-113/+93
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: activerecord/lib/active_record/base.rb