- 17 5月, 2016 6 次提交
-
-
由 Kasper Timm Hansen 提交于
Leftover from an earlier commit, chose to fix because I was just down in this file.
-
由 Kasper Timm Hansen 提交于
Per request digest caches were added before we had hooks into different units of work that Rails performs. As such the most reliable way to prevent stale cache digests was with a middleware. The middleware prevented staleness in Action Controller requests. However, the executor is superior because it should also prevent staleness when running just Active Job jobs or broadcasting through Action Cable's server.
-
由 Kasper Timm Hansen 提交于
Forward ActiveRecord::Relation#count to Enumerable#count if block given
-
由 Sean Griffin 提交于
Introduce Date#all_day
-
由 Sean Griffin 提交于
Keep previous state around for nested calls to #suppress
-
由 Jahfer Husain 提交于
If a call to #suppress from the same class occurred inside another #suppress block, the suppression state would be set to false before the outer block completes. This change keeps the previous state around in memory and unwinds it as the blocks exit.
-
- 16 5月, 2016 4 次提交
-
-
由 Sean Griffin 提交于
Fix bug in JSON deserialization when column default is an empty string
-
由 Sean Griffin 提交于
Rails 5.1 point type should not raise exception if empty string is provided as input
-
由 Jeremy Daer 提交于
Follows the same pattern as controllers and jobs. Exceptions raised in delivery jobs (enqueued by `#deliver_later`) are also delegated to the mailer's rescue_from handlers, so you can handle the DeserializationError raised by delivery jobs: ```ruby class MyMailer < ApplicationMailer rescue_from ActiveJob::DeserializationError do … end ``` ActiveSupport::Rescuable polish: * Add the `rescue_with_handler` class method so exceptions may be handled at the class level without requiring an instance. * Rationalize `exception.cause` handling. If no handler matches the exception, fall back to the handler that matches its cause. * Handle exceptions raised elsewhere. Pass `object: …` to execute the `rescue_from` handler (e.g. a method call or a block to instance_exec) against a different object. Defaults to `self`.
-
由 Rafael França 提交于
Add some assertions for BigDecimal#to_s
-
- 15 5月, 2016 6 次提交
-
-
由 bUg 提交于
-
由 Yosuke Kabuto 提交于
-
由 Yosuke Kabuto 提交于
-
由 Xavier Noria 提交于
Conventionally envs are ordered development -> test -> production.
-
由 Xavier Noria 提交于
Add Action Cable guide to list
-
由 Xavier Noria 提交于
-
- 14 5月, 2016 8 次提交
-
-
由 Eileen M. Uchitelle 提交于
Document and test ActionDispatch server_port
-
由 Vijay Dev 提交于
Conflicts: guides/source/configuring.md
-
由 Rafael França 提交于
Perfomance fix for ActiveSupport Enumerable#index_by
-
由 lvl0nax 提交于
Calculating ------------------------------------- before 34.731k i/100ms after 48.206k i/100ms ------------------------------------------------- before 508.451k (± 1.2%) i/s - 2.570M after 720.068k (± 0.9%) i/s - 3.615M Comparison: after: 720067.6 i/s before: 508451.1 i/s - 1.42x slower
-
由 Rafael França 提交于
Add missing space and newline for clarity
-
由 Eileen M. Uchitelle 提交于
Add notes on cosmetic patches to contributing guidelines
-
由 Joe Masilotti 提交于
-
由 Vipul A M 提交于
Add output snippet from `ActionController::API.ancestors - ActionController::Metal.ancestors` command for api apps. [ci skip]
-
- 13 5月, 2016 6 次提交
-
-
由 Jon Moss 提交于
This effectively publishes the "Action Cable Overview" guide. If we don't think this is ready for the prime time, we can mark it as a "work in progress" guide. [ci skip]
-
由 Kang-Kyu Lee 提交于
-
由 Sean Griffin 提交于
The error message that we give today makes this error difficult to debug if you receive it. I have no clue why we're printing the object ID of the class (the commit doesn't give context), but I've left it as it was deliberate.
-
由 Richard Schneeman 提交于
Rename test method
-
由 Molchanov Andrey 提交于
-
由 Tom Kadwill 提交于
-
- 12 5月, 2016 8 次提交
-
-
由 Sean Griffin 提交于
When looking for mutation, we compare the serialized version of the value to the before_type_cast form. `Type::Serialized` was breaking this contract by passing the already serialized attribute to the subtype's mutation detection. This never manifested previously, as all mutable subtypes either didn't do anything in their `serialize` method, or had a way to detect double serialization (e.g. `is_a?(String)`). However, now that JSON types can handle string primitives, we need to avoid double serialization. Fixes #24993.
-
由 Jon Moss 提交于
Signed-off-by: NJeremy Daer <jeremydaer@gmail.com>
-
由 Sean Griffin 提交于
Define ActiveRecord::Attribute::Null#type_cast
-
由 Henrik Nyh 提交于
Useful for queries like: Item.where(created_at: Date.current.all_day) There was already a Time#all_day with the same behaviour, but for queries like the above, Date is more convenient.
-
由 Kasper Timm Hansen 提交于
Improve documentation and tests for raw_host_with_port and host_with_…
-
由 Tom Kadwill 提交于
-
由 Arthur Neves 提交于
When calling remove_connection in a subclass, that should not fallback to the parent, otherwise it will remove the parent connection from the handler.
-
由 Matthew Erhard 提交于
Using ActiveRecord::Base.attribute to declare an attribute with a default value on a model where the attribute is not backed by the database would raise a NotImplementedError when model.save is called. The error originates from https://github.com/rails/rails/blob/59d252196b36f6afaafd231756d69ea21537cf5d/activerecord/lib/active_record/attribute.rb#L84. This is called from https://github.com/rails/rails/blob/59d252196b36f6afaafd231756d69ea21537cf5d/activerecord/lib/active_record/attribute.rb#L46 on an ActiveRecord::Attribute::Null object. This commit corrects the behavior by implementing ActiveRecord::Attribute::Null#type_cast. With ActiveRecord::Attribute::Null#type_cast defined, ActiveRecord::Attribute::Null#value (https://github.com/rails/rails/blob/59d252196b36f6afaafd231756d69ea21537cf5d/activerecord/lib/active_record/attribute.rb#L173..L175) can be replaced with its super method (https://github.com/rails/rails/blob/59d252196b36f6afaafd231756d69ea21537cf5d/activerecord/lib/active_record/attribute.rb#L36..L40). fixes #24979
-
- 11 5月, 2016 2 次提交
-
-
由 Arthur Nogueira Neves 提交于
Getting Started Guide: Add invoke test_unit to files table [ci skip]
-
由 Francis Go 提交于
-