- 28 2月, 2016 1 次提交
-
-
由 Genadi Samokovarov 提交于
When building decorators, a common pattern may emerge: class Partition def initialize(first_event) @events = [ first_event ] end def people if @events.first.detail.people.any? @events.collect { |e| Array(e.detail.people) }.flatten.uniq else @events.collect(&:creator).uniq end end private def respond_to_missing?(name, include_private = false) @events.respond_to?(name, include_private) end def method_missing(method, *args, &block) @events.send(method, *args, &block) end end With `Module#delegate_missing_to`, the above is condensed to: class Partition delegate_missing_to :@events def initialize(first_event) @events = [ first_event ] end def people if @events.first.detail.people.any? @events.collect { |e| Array(e.detail.people) }.flatten.uniq else @events.collect(&:creator).uniq end end end David suggested it in #23824.
-
- 25 2月, 2016 1 次提交
-
-
由 eileencodes 提交于
Adds changelog headers for beta3 release
-
- 23 2月, 2016 1 次提交
-
-
- 21 2月, 2016 1 次提交
-
-
由 David Heinemeier Hansson 提交于
-
- 15 2月, 2016 1 次提交
-
-
由 Vipul A M 提交于
-
- 11 2月, 2016 1 次提交
-
-
由 Brian Christian 提交于
-
- 02 2月, 2016 4 次提交
-
-
由 Jon Moss 提交于
-
由 Rafael Mendonça França 提交于
And improve changelongs. [ci skip]
-
由 Sean Griffin 提交于
-
由 claudiob 提交于
[ci skip]
-
- 29 1月, 2016 1 次提交
-
-
由 Prathamesh Sonpatki 提交于
- Instead of using `to_f.phase`, just use `to_f.negative`?. - This change works same for all cases except when number is "-0.0". -0.0.to_f.negative? => false -0.0.to_f.phase? => pi - So -0.0 will be treated as positive from now onwards. - So this change reverts changes from https://github.com/rails/rails/pull/6512. - But it should be acceptable as we could not find any currency which supports negative zeros.
-
- 13 1月, 2016 1 次提交
-
-
由 Yves Senn 提交于
-
- 08 1月, 2016 1 次提交
-
-
由 David Cornu 提交于
-
- 03 1月, 2016 1 次提交
-
-
由 yuuji.yaginuma 提交于
petabyte and exabyte numeric conversion has been added after the 5.0.0.beta1 release. ref: 85048e90
-
- 02 1月, 2016 1 次提交
-
-
由 Rafael Mendonça França 提交于
[ci skip]
-
- 31 12月, 2015 2 次提交
-
-
由 Ryan T. Hosford 提交于
- Adds new key/value pair to payload when an exception is raised e.g. `:exception_object=> #<RuntimeError: FAIL>` - Updates relevant test - Adds CHANGELOG entry
-
由 Rafael Mendonça França 提交于
-
- 27 12月, 2015 2 次提交
-
-
由 Kasper Timm Hansen 提交于
It's numeric and the framework is called Action Controller.
-
由 eileencodes 提交于
CHANGELOG entry for petabyte and exabyte
-
- 23 12月, 2015 1 次提交
-
-
由 Yves Senn 提交于
[ci skip]
-
- 21 12月, 2015 1 次提交
-
-
由 Genadi Samokovarov 提交于
During the `5.0.0.beta1` release, the CHANGELOGs got an entry like the following: ``` * No changes. ``` It is kinda confusing as there are indeed changes after it. Not a biggie, just a small pass over the CHANGELOGs. [ci skip]
-
- 19 12月, 2015 1 次提交
-
-
由 eileencodes 提交于
-
- 17 12月, 2015 3 次提交
-
-
由 David Heinemeier Hansson 提交于
-
由 David Heinemeier Hansson 提交于
Add thread_m/cattr_accessor/reader/writer suite of methods for declaring class and module variables that live per-thread
-
由 Genadi Samokovarov 提交于
-
- 16 12月, 2015 1 次提交
-
-
由 yui-knk 提交于
-
- 14 12月, 2015 1 次提交
-
-
由 Xavier Noria 提交于
Before this commit, the sole presence of the Listen constant enabled the evented file watcher (unless listen resorted to the polling backend). This way, applications may depend on listen for other stuff independently of this feature. Also, allows teams with mixed setups to decide at boot time whether the evented watcher should be enabled for each particular instance.
-
- 20 11月, 2015 1 次提交
-
-
由 Michael Grosser 提交于
-
- 16 11月, 2015 1 次提交
-
-
由 Tyler Hunt 提交于
-
- 11 11月, 2015 4 次提交
-
-
由 Xavier Noria 提交于
-
由 Jon Pascoe 提交于
-
由 Xavier Noria 提交于
-
由 Jon Pascoe 提交于
-
- 07 11月, 2015 1 次提交
-
-
由 Swaathi K 提交于
Added test cases Using kwargs instead of three seperate functions Updated parameterize in transliterate.rb Updated parameterize in transliterate.rb Added deprecation warnings and updating RDoc+Guide Misspelled separtor. Fixed. Deprecated test cases and added support to parameterize with keyword parameters Squashing commits. Fixed test cases and added deprecated test cases Small changes to Gemfile.lock and CHANGELOG Update Gemfile.lock
-
- 22 10月, 2015 1 次提交
-
-
由 Konstantinos Rousis 提交于
-
- 21 10月, 2015 2 次提交
-
-
由 Sean Griffin 提交于
Given that this pull request affects a mutable value, we need to test for and document the affects on the receiver in this case. Additionally, this pull request was missing a CHANGELOG entry.
-
由 Sean Griffin 提交于
-
- 02 10月, 2015 1 次提交
-
-
由 Roque Pinel 提交于
Move from `AS::Callbacks::CallbackChain.halt_and_display_warning_on_return_false` to `AS::Callbacks.halt_and_display_warning_on_return_false` base on [this discussion](https://github.com/rails/rails/pull/21218#discussion_r39354580) Fix the documentation broken by 0a120a81
-
- 25 9月, 2015 1 次提交
-
-
由 Lucas Mazza 提交于
With this we can perform new assertions on the returned value without having to cache it with an outer variable or wrapping all subsequent assertions inside the `assert_difference` block. Before: ``` post = nil assert_difference -> { Post.count }, 1 do Post.create end assert_predicate post, :persisted? ``` Now: ``` post = assert_difference -> { Post.count } do Post.create end assert_predicate post, :persisted? ```
-
- 23 9月, 2015 1 次提交
-
-
由 Roque Pinel 提交于
Rails 4.2.3 AS::Callbacks will not halt chain if `false` is returned. That is the behavior of specific callbacks like AR::Callbacks and AM::Callbacks.
-