- 18 6月, 2014 1 次提交
-
-
由 Sean Griffin 提交于
If the through record gets created in an `after_create` hook that is defined before the association is defined (therefore after its `after_create` hook) get saved twice. This ensures that the through records are created only once, regardless of the order of the hooks.
-
- 17 6月, 2014 23 次提交
-
-
由 Yves Senn 提交于
Move test teardown into `ensure` block.
-
由 Zuhao Wan 提交于
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
[ci skip] doc corrected : ActiveRecord::Base.connections to ActiveRecord::Base.configurations
-
由 Rahul P. Chaudhari 提交于
-
由 Juanjo Bazán 提交于
-
由 Rafael Mendonça França 提交于
Promote time zone aware attributes to a first class type decorator
-
由 Sean Griffin 提交于
This refactoring revealed the need for another form of decoration, which takes a proc to select which it applies to (There's a *lot* of cases where this form can be used). To avoid duplication, we can re-implement the old decoration in terms of the proc-based decoration. The reason we're `instance_exec`ing the matcher is for cases such as time zone aware attributes, where a decorator is defined in a parent class, and a method called in the matcher is overridden by a child class. The matcher will close over the parent, and evaluate in its context, which is not the behavior we want.
-
由 Rafael Mendonça França 提交于
Refactor application of type decorators into an object
-
由 Sean Griffin 提交于
-
由 Rafael Mendonça França 提交于
[ci skip] /javascript/ ~> JavaScript
-
由 Aditya Kapoor 提交于
-
由 Zachary Scott 提交于
[ci skip] add API doc for AR Group.
-
由 Aditya Kapoor 提交于
-
由 Zachary Scott 提交于
-
由 Zachary Scott 提交于
[ci skip] correct doc for serialization in accordance with API Doc Guide
-
由 Rafael Mendonça França 提交于
Refactor in-place dirty checking to use the attribute object
-
由 Rafael Mendonça França 提交于
[ci skip]
-
由 Sean Griffin 提交于
-
由 Aditya Kapoor 提交于
-
由 Rafael Mendonça França 提交于
Add test cases for Hash#asset_valid_keys
-
由 Rafael Mendonça França 提交于
Skip migration check if adapter doesn't support it
-
- 16 6月, 2014 10 次提交
-
-
由 Yves Senn 提交于
Change Http::Cache::SPECIAL_KEYS from Array to Set
-
由 Yves Senn 提交于
Remove unused parameter.
-
由 Zachary Scott 提交于
[ci skip] /mysql/i -> MySQL, Spell correct in continuation to #15555
-
由 Zachary Scott 提交于
[ci skip] Use `an` for SQL
-
由 Rafael Mendonça França 提交于
Correct typo, add test for validates_absence_of
-
由 Akshay Vishnoi 提交于
-
由 Mindaugas Mozūras 提交于
Slightly improves performance, for example, a simple benchmark: ```ruby require 'benchmark/ips' require 'set' SPECIAL_KEYS = %w[extras no-cache max-age public must-revalidate] SPECIAL_KEYS_SET = Set.new(SPECIAL_KEYS) directive = 'must-revalidate' Benchmark.ips do |x| x.report('array') { SPECIAL_KEYS.include?(directive) } x.report('set') { SPECIAL_KEYS_SET.include?(directive) } end ``` Output: ``` ------------------------------------- array 67926 i/100ms set 74054 i/100ms ------------------------------------- array 2318423.4 (±2.8%) i/s - 11615346 in 5.014899s set 3387981.8 (±4.7%) i/s - 16958366 in 5.019355s ```
-
由 Rafael Mendonça França 提交于
Remove unused param 'separators' from RouteSet#build_path
-
由 Mindaugas Mozūras 提交于
-
由 Guo Xiang Tan 提交于
-
- 15 6月, 2014 6 次提交
-
-
由 Yves Senn 提交于
Change the deprecation warning on `serialized_attributes`
-
由 Sean Griffin 提交于
to "without replacement"
-
由 Yves Senn 提交于
This was partially broken because `preview_interceptors=` just assigned the raw values, whithout going through `register_preview_interceptor`. Now the Action Mailer railtie takes care of the `preview_interceptors` option. This commit is a partial revert of: Revert "Merge pull request #15739 from y-yagi/correct_doc_for_action_mailer_base" This reverts commit a15704d7, reversing changes made to 1bd12a86. /cc @kuldeepaggarwal @y-yagi
-
由 Yves Senn 提交于
[ci skip] correct doc for `register_preview_interceptor`
-
由 Yves Senn 提交于
remove unnecessary calling of `I18n.backend.store_translations('empty', {})`
-
由 Kuldeep Aggarwal 提交于
Clean up I18n stored translations after test continuation with #15714
-