- 20 10月, 2014 19 次提交
-
-
由 Dan Olson 提交于
-
由 Yves Senn 提交于
Mention `perform_now` in AJ base docs to specify how to immediately invoke a job [ci skip]
-
由 Yves Senn 提交于
-
由 Yves Senn 提交于
Enable emitting of warnings from ActiveJob tests.
-
由 Yves Senn 提交于
Message on AR::UnknownAttributeError should include the class name of a record
-
由 Yuki Nishijima 提交于
This would be helpful if 2 models have an attribute that has a similar name to the other. e.g: before: User.new(name: "Yuki Nishijima", projects_attributes: [name: "kaminari"]) # => ActiveRecord::UnknownAttributeError: unknown attribute: name after: User.new(name: "Yuki Nishijima", projects_attributes: [name: "kaminari"]) # => ActiveRecord::UnknownAttributeError: unknown attribute on User: name
-
由 Zachary Scott 提交于
-
由 Zachary Scott 提交于
Merge branch 'activerecord-merge-docs' of https://github.com/justanshulsharma/rails into justanshulsharma-activerecord-merge-docs
-
由 Vipul A M 提交于
-
由 Anshul Sharma 提交于
-
由 Anshul Sharma 提交于
-
由 Rafael Mendonça França 提交于
remove duplicate method (_status_code) in action_dispatch
-
由 Abdelkader Boudih 提交于
-
由 Vipul A M 提交于
-
由 Vipul A M 提交于
-
由 Matthew Draper 提交于
Fixed test throwing unused variable warning
-
由 Vipul A M 提交于
-
由 Abdelkader Boudih 提交于
Make status_at methods nodoc
-
由 Prathamesh Sonpatki 提交于
- Also one minor change for documenting url_for method in ActionController::Metal. [ci skip]
-
- 19 10月, 2014 16 次提交
-
-
由 Matthew Draper 提交于
fix wrong example from #17318 [ci skip]
-
由 Igor Kapkov 提交于
-
由 Abdelkader Boudih 提交于
make guides example more friendly to nonlatin langs [ci skip]
-
由 Igor Kapkov 提交于
-
由 Godfrey Chan 提交于
-
由 Zachary Scott 提交于
[ci skip] add :queue option to deliver_later and deliver_later! documentation
-
由 yuuji.yaginuma 提交于
-
由 Zachary Scott 提交于
-
由 Zachary Scott 提交于
-
由 Rafael Mendonça França 提交于
Replace (slower) block.call with (faster) yield
-
由 Zachary Scott 提交于
This reverts commit 0ab075e7.
-
由 Zachary Scott 提交于
-
由 Nicolas Cavigneaux 提交于
Since some headers can appear multiple times in an email it's required to set it to nil first when you want to overwrite an existing one. This commit add some information about this process. Fix #15912
-
由 Pramod Sharma 提交于
[ci skip] Add Doc of with_options for the case when inherited default options and original options have same keys
-
由 claudiob 提交于
Performance optimization: `yield` with an implicit `block` is faster than `block.call`. See http://youtu.be/fGFM_UrSp70?t=10m35s and the following benchmark: ```ruby require 'benchmark/ips' def fast yield end def slow(&block) block.call end Benchmark.ips do |x| x.report('fast') { fast{} } x.report('slow') { slow{} } end # => fast 154095 i/100ms # => slow 71454 i/100ms # => # => fast 7511067.8 (±5.0%) i/s - 37445085 in 4.999660s # => slow 1227576.9 (±6.8%) i/s - 6145044 in 5.028356s ```
-
由 Zachary Scott 提交于
[ci skip] Add Doc of with_options for the case when inherited default options and original options have same keys
-
- 18 10月, 2014 4 次提交
-
-
由 Rafael Mendonça França 提交于
Replace (slower) block.call with (faster) yield
-
由 claudiob 提交于
Performance optimization: `yield` with an implicit `block` is faster than `block.call`. See http://youtu.be/fGFM_UrSp70?t=10m35s and the following benchmark: ```ruby require 'benchmark/ips' def fast yield end def slow(&block) block.call end Benchmark.ips do |x| x.report('fast') { fast{} } x.report('slow') { slow{} } end # => fast 154095 i/100ms # => slow 71454 i/100ms # => # => fast 7511067.8 (±5.0%) i/s - 37445085 in 4.999660s # => slow 1227576.9 (±6.8%) i/s - 6145044 in 5.028356s ```
-
由 Rafael Mendonça França 提交于
Add necessary 'require reverse_merge' to HAWI.rb
-
由 claudiob 提交于
Hashes with indifferent access should support `reverse_merge` out-of-the-box but they don't; for instance the following code fails: ```ruby require 'active_support' require 'active_support/hash_with_indifferent_access' hash = HashWithIndifferentAccess.new key: :old_value hash.reverse_merge key: :new_value ``` This PR fixes the case above by simply requiring `active_support/core_ext/hash/reverse_merge` in `hash_with_indifferent_access.rb` and adding a test that confirms the fix. --- Here are more details about the bugfix. Currently, `reverse_merge` is [defined in HashWithIndifferentAccess](https://github.com/rails/rails/blob/4e8ea13ba1a0870905a46fac5f232d9f41eef8a4/activesupport/lib/active_support/hash_with_indifferent_access.rb#L208) by invoking `super`, that is by invoking `Hash#reverse_merge`: ```ruby def reverse_merge(other_hash) super(self.class.new_from_hash_copying_default(other_hash)) end ``` However, Ruby's `Hash` does not have the `reverse_merge` by default: it must be added by ActiveSupport, and that requires the following line of code to be present: ```ruby require 'active_support/core_ext/hash/reverse_merge' ```
-
- 17 10月, 2014 1 次提交
-
-
由 Rafael Mendonça França 提交于
Add a deprecation warning for abiguous boolean values
-