diff options
| author | Todd Lynam <TLynam@gmail.com> | 2016-04-20 18:35:43 -0700 |
|---|---|---|
| committer | Todd Lynam <TLynam@gmail.com> | 2016-04-20 18:35:43 -0700 |
| commit | 406047d3acf94e3ce15705f870881632f631c52d (patch) | |
| tree | 5344eca15a7f308aec9cf6e9dfded4a751203c2f /activemodel/lib/active_model/callbacks.rb | |
| parent | 778ab950084ea00f6ce0c731157e8e5cc22d1bf7 (diff) | |
| download | rails-406047d3acf94e3ce15705f870881632f631c52d.tar.gz rails-406047d3acf94e3ce15705f870881632f631c52d.tar.bz2 rails-406047d3acf94e3ce15705f870881632f631c52d.zip | |
Update delegate to use newer Ruby syntax
This commit updates `delegate` to use the keyword argument syntax added in Ruby 2. I left the `ArgumentError` when `to` is missing, because it better explains how to correctly use `delegate`. We could instead rely on the default `ArgumentError` that would be raised if `to` were a required keyword argument.
Diffstat (limited to 'activemodel/lib/active_model/callbacks.rb')
0 files changed, 0 insertions, 0 deletions
