aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fixes API wording to match API conventionsGabi Stefanini2016-12-061-2/+2
| | | | | | | | | In ActiveModel::Model API documentation, referrences to Rails components were tagged with fixed-width font and named as if they were modules.This fixes the inconsistency to match API documentation conventions. [ci skip]
* Merge pull request #27251 from ebeigarts/fix-autosaveSean Griffin2016-12-062-3/+27
|\ | | | | Fix association scope inside autosaved association callbacks
| * Improve test without using anonymous classesEdgars Beigarts2016-12-061-27/+24
| |
| * Reload association scope inside autosaved associationsEdgars Beigarts2016-12-022-3/+30
| |
* | Merge pull request #27286 from alexcameron89/document_recent_regex_changeSean Griffin2016-12-061-0/+1
|\ \ | | | | | | [ci skip] Document regex change
| * | [ci skip] Document regex changeAlex Kitchens2016-12-061-0/+1
|/ /
* | Merge pull request #27285 from MSP-Greg/MSP-Greg_doc1Matthew Draper2016-12-071-4/+1
|\ \ | | | | | | ActionCable::Connection::Base doc code sample syntax error
| * | ActionCable::Connection::Base doc code sample syntax errorMSP-Greg2016-12-061-4/+1
| | |
* | | Merge pull request #25451 from ↵Sean Griffin2016-12-067-8/+33
|\ \ \ | | | | | | | | | | | | | | | | kamipo/translate_not_null_violation_to_specific_exception Translate NOT NULL violation to the specific exception
| * | | Translate NOT NULL violation to the specific exceptionRyuta Kamizono2016-12-067-8/+33
| |/ / | | | | | | | | | | | | Raise `ActiveRecord::NotNullViolation` when a record cannot be inserted or updated because it would violate a not null constraint.
* | | Merge pull request #27275 from kamipo/should_inherit_statement_invalidSean Griffin2016-12-061-1/+1
|\ \ \ | |/ / |/| | Should inherit `StatementInvalid` rather than `WrappedDatabaseException`
| * | Should inherit `StatementInvalid` rather than `WrappedDatabaseException`Ryuta Kamizono2016-12-061-1/+1
| | | | | | | | | | | | Because defunct wrapper class is kept for compatibility.
* | | Merge pull request #27280 from brchristian/patch-1Jeremy Daer2016-12-051-6/+6
|\ \ \ | | | | | | | | Docs: correct punctuation in puma.rb
| * | | Update puma.rbbrchristian2016-12-051-6/+6
|/ / / | | | | | | Clarifying some of the language/punctuation and removing a couple comma splices.
* | | Merge pull request #26687 from kamipo/fix_add_index_to_normalize_optionsMatthew Draper2016-12-064-0/+9
|\ \ \ | | | | | | | | Fix `add_index` to normalize column names and options
| * | | Fix `add_index` to normalize column names and optionsRyuta Kamizono2016-10-034-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently does not work the following code. ```ruby add_index(:people, ["last_name", "first_name"], order: { last_name: :desc, first_name: :asc }) ``` Normalize column names and options to fix the issue.
* | | | Merge pull request #27277 from kamipo/remove_unnecessary_variableMatthew Draper2016-12-061-2/+1
|\ \ \ \ | | | | | | | | | | Remove unnecessary `connection_name` variable
| * | | | Remove unnecessary `connection_name` variableRyuta Kamizono2016-12-061-2/+1
| | |/ / | |/| |
* | | | Merge pull request #27274 from kamipo/primary_key_with_auto_increment_and_bigintMatthew Draper2016-12-063-11/+25
|\ \ \ \ | |/ / / |/| | | Make `:auto_increment` option works on `:bigint`
| * | | Make `:auto_increment` option works on `:bigint`Ryuta Kamizono2016-12-063-11/+25
| | | | | | | | | | | | | | | | Follow up to #27272.
* | | | Do not try to set the content_type if the format is nilRafael Mendonça França2016-12-051-1/+1
| | | |
* | | | Merge pull request #26266 from jmccartie/jm/bigintSean Griffin2016-12-0522-74/+332
|\ \ \ \ | |/ / / |/| | | Change Default Primary Keys to BIGINT
| * | | Make pg adapter use bigserial for pk by defaultPavel Pravosud2016-12-0511-3/+262
| | | |
| * | | Change MySQL and Postgresql to use Bigint primary keysJon McCartie2016-12-0516-75/+74
|/ / /
* | | Merge pull request #27272 from ↵Sean Griffin2016-12-054-1/+65
|\ \ \ | | | | | | | | | | | | | | | | kamipo/make_auto_increment_to_internal_primary_key_option Make `:auto_increment` to internal primary key option
| * | | Make `:auto_increment` to internal primary key optionRyuta Kamizono2016-12-064-1/+65
|/ / / | | | | | | | | | | | | | | | Using `:auto_increment` option for abstracting the DB-specific auto incremental types. It is worth to ease to implement the compatibility layer.
* | | Don't try to run multiple insert queries at onceSean Griffin2016-12-051-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | SQLite's default query interface ignores anything after the first semicolon in a query. This is actually quite common behavior in database drivers, especially when dealing with code paths for prepared statements (which we are). While this should only affect SQLite, as I'm not aware of any drivers which don't support multi-insert. Even if this does affect other third party drivers though, I'd prefer not to assume that more than one query can be executed per call to `execute`. Fixes #26948. Close #27242.
* | | Merge pull request #27269 from amaierhofer/adjust_link_to_api_docSean Griffin2016-12-051-4/+3
|\ \ \ | | | | | | | | [ci skip] Remove button reference in `link_to` api doc
| * | | Update url_helper.rb, adjust link_to api docAndreas Maierhofer2016-12-051-4/+3
| | | | | | | | | | | | | | | | | | | | Removed references to `button` in the `link_to` `disable_with` api description.
* | | | Merge pull request #27264 from kamipo/fix_change_column_lose_commentSean Griffin2016-12-052-2/+5
|\ \ \ \ | |/ / / |/| | | Fix that `change_column` lose a comment
| * | | Fix that `change_column` lose a commentRyuta Kamizono2016-12-052-2/+5
| | | |
* | | | Merge pull request #27267 from prathamesh-sonpatki/fullstopKasper Timm Hansen2016-12-051-1/+1
|\ \ \ \ | | | | | | | | | | Add fullstop following the pattern used in rest of the file
| * | | | Add fullstop following the pattern used in rest of the filePrathamesh Sonpatki2016-12-051-1/+1
|/ / / /
* | | | Merge pull request #27266 from simi/patch-1Guillermo Iguaran2016-12-041-1/+1
|\ \ \ \ | |/ / / |/| | | Fix binstop -> binstub typo in railties changelog. [ci-skip]
| * | | Fix binstop -> binstub typo in railties changelog.Josef Šimánek2016-12-051-1/+1
|/ / / | | | | | | [ci skip]
* | | Merge pull request #27258 from y-yagi/stop_using_removed_render_textKasper Timm Hansen2016-12-034-5/+5
|\ \ \ | | | | | | | | stop using removed `render :text`
| * | | stop using removed `render :text`yuuji.yaginuma2016-12-034-5/+5
| | | | | | | | | | | | | | | | Follow up to 79a5ea9eadb4d43b62afacedc0706cbe88c54496
* | | | Merge pull request #27257 from koic/use_standard_name_javascriptXavier Noria2016-12-031-1/+1
|\ \ \ \ | | | | | | | | | | Use JavaScripts instead of Javascripts in `rake stats`
| * | | | Use JavaScripts instead of Javascripts in `rake stats`Koichi ITO2016-12-031-1/+1
|/ / / /
* | | / Remove unused argumentRafael Mendonça França2016-12-022-16/+5
| |_|/ |/| | | | | | | | Now Text class is only used to render text mime type pages
* | | Merge pull request #27250 from y-yagi/use_binstub_in_bin_updateGuillermo Iguaran2016-12-011-1/+1
|\ \ \ | |/ / |/| | use yarn binstub in `bin/update`
| * | use yarn binstub in `bin/update`yuuji.yaginuma2016-12-021-1/+1
|/ / | | | | | | Follow up to 3dac36bd8e26363bb10f4d2a7b21efa75d200e26
* | Exclude singleton classes from `subclasses` and `descendants`Sean Griffin2016-12-012-0/+11
| | | | | | | | | | | | | | | | This behavior changed in Ruby starting with 2.3.0, as a result of https://bugs.ruby-lang.org/issues/11360. This results in a change in behavior of these methods which is likely undesirable. Fixes #27238
* | Stop using the `pg` Float encoderSean Griffin2016-12-011-1/+0
| | | | | | | | | | | | | | | | | | | | PG's type map assumes that all Ruby floats are going to a field with an OID of type float4 or float8, and generates text which is invalid syntax for other types. Since the gem can handle floats properly without this encoder (albeit slightly slower), we can continue to use that as we have in prior versions of Rails. Fixes #27246
* | Yarn: Move node_modules, package.json, and yarn.lock file to vendor (#27245)David Heinemeier Hansson2016-12-018-12/+16
| | | | | | Move node_modules, package.json, and yarn.lock file to vendor
* | Merge pull request #27240 from nanaya/accidentally-headingMatthew Draper2016-12-011-2/+2
|\ \ | | | | | | Prevent issue number in documentation from becoming markdown header [ci skip]
| * | Fix issue number from becoming markdown headernanaya2016-12-011-2/+2
|/ / | | | | | | The alternative is escaping it but moving around the text seems a bit simpler.
* | Merge pull request #27233 from ↵Jon Moss2016-11-301-2/+0
|\ \ | | | | | | | | | | | | utilum/27202_remove_outdated_tip_in_form_helpers_guide Fixes #27202, [ci skip]
| * | Fixes #27202, [ci skip]utilum2016-11-301-2/+0
|/ /
* | Merge pull request #27206 from kirs/fix-testing-isolation-2Matthew Draper2016-12-011-7/+8
|\ \ | | | | | | Fix arguments passing in testing isolation