- 17 12月, 2015 28 次提交
-
-
由 Rafael Mendonça França 提交于
This reverts commit 4d06ea9a, reversing changes made to e9d15072. Reason: This will break oracle-enhanced, see https://github.com/rsim/oracle-enhanced/blob/3c42131db82b64ac41645db3affc6e4650289df6/lib/active_record/connection_adapters/oracle_enhanced_adapter.rb#L1254
-
由 Rafael França 提交于
`join_to_delete` is same as `join_to_update`
-
由 Ryuta Kamizono 提交于
-
由 Eileen M. Uchitelle 提交于
Add Logger option to disable message broadcasts
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
All public methods are tasks, so we need to move it to protected visibility.
-
由 Rafael Mendonça França 提交于
-
由 Sean Griffin 提交于
This test was failing when run on Windows using PostgreSQL. Depending on the OS (and 32 vs 64 bit), this type could be a `BigNum`. We could loosen the assertion to `Numeric`, but if the value is equal to the expected, and responds to `bitlength` properly, who cares?
-
由 Nate Smith 提交于
When setting the Rails logger to log to STDOUT, it would broadcast the log twice in development. This adds a setting that will prevent messages from being broadcast to multiple logs, while still allowing calls to `#close`, `#level=`, `#progname=`, and `#formatter=` to be broadcasted. Fixes #14769, #11415
-
由 Sean Griffin 提交于
I didn't mean to commit that!
-
由 Sean Griffin 提交于
Unlike unix, the TZ variable on Windows does not look at a database. It is always expected to be in the form {Standard Time Abbreviation}{UTC-Offset}{Daylight Time Abbriviation}. This changes the relevant tests to use the Windows form when run from Windows.
-
由 Rafael Mendonça França 提交于
[ci skip]
-
由 Sean Griffin 提交于
Add `redirect_to_back_or_default`
-
由 Sean Griffin 提交于
When this test was run on Windows, the database file would still be in use, and `File.unlink` would fail. This would cause the temp directory to be unable to be removed, and error out. By disconnecting the connection when finished, we can avoid this error.
-
由 Rafael Mendonça França 提交于
-
由 Rafael Mendonça França 提交于
-
由 Kasper Timm Hansen 提交于
Use Module.prepend instead of alias_method for Range#to_s
-
由 Rafael França 提交于
Don't leak Object constants in core_ext/module/qualified_const
-
由 Sean Griffin 提交于
"conditionals in the gemfile creates conditional code in the Gemfile.lock. Since it is checked in the repository I think it is better to avoid it"
-
由 Genadi Samokovarov 提交于
-
由 Bernard Potocki 提交于
-
由 Sean Griffin 提交于
bcrypt 3.1.0 doesn't load on Windows. See https://github.com/codahale/bcrypt-ruby/issues/128 for details.
-
由 Derek Prior 提交于
Applications that use `redirect_to :back` can be forced to 500 by clients that do not send the HTTP `Referer` (sic) header. `redirect_back` requires the user to consider this possibility up front and avoids this trivially-caused application error.
-
由 Derek Prior 提交于
`redirect_to :back` is a somewhat common pattern in Rails apps, but it is not completely safe. There are a number of circumstances where HTTP referrer information is not available on the request. This happens often with bot traffic and occasionally to user traffic depending on browser security settings. When there is no referrer available on the request, `redirect_to :back` will raise `ActionController::RedirectBackError`, usually resulting in an application error. `redirect_back` takes a required `fallback_location` keyword argument that specifies the redirect when the referrer information is not available. This prevents 500 errors caused by `ActionController::RedirectBackError`.
-
由 Rafael França 提交于
Introduce ApplicationRecord, an Active Record layer supertype
-
由 Sean Griffin 提交于
It appears that MRI on Windows can also appear as `:mingw`, if it was installed via RubyInstaller.
-
由 Rafael França 提交于
Delete dead code comments
-
由 Sean Griffin 提交于
platform `:ruby` is only MRI on Linux or Mac. Windows MRI shows up as `:mswin` or `:mswin64` depending on if it was installed as 32 or 64 bit. I am unsure if this will cause conflicts with JRuby on Windows, but I don't have the means to test this at the moment.
-
- 16 12月, 2015 12 次提交
-
-
由 Rafael França 提交于
Deprecate passing string to define callback.
-
由 Rafael França 提交于
Fix a couple of grammatical errors in security.md
-
由 Eileen M. Uchitelle 提交于
Mention the correct way to halt callback chains
-
由 Carlos Souza 提交于
The previous title was misleading. [ci skip]
-
由 Existent Ltd 提交于
-
由 yui-knk 提交于
-
由 Genadi Samokovarov 提交于
It's pretty common for folks to monkey patch `ActiveRecord::Base` to work around an issue or introduce extra functionality. Instead of shoving even more stuff in `ActiveRecord::Base`, `ApplicationRecord` can hold all those custom work the apps may need. Now, we don't wanna encourage all of the application models to inherit from `ActiveRecord::Base`, but we can encourage all the models that do, to inherit from `ApplicationRecord`. Newly generated applications have `app/models/application_record.rb` present by default. The model generators are smart enough to recognize that newly generated models have to inherit from `ApplicationRecord`, but only if it's present.
-
由 Tony Ta 提交于
-
由 Tony Ta 提交于
ActiveSupport::Multibyte::Unicode::Codepoint doesn't support this API
-
由 Tony Ta 提交于
-
由 Tony Ta 提交于
-
由 Tony Ta 提交于
-