diff options
| author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-12 15:50:14 -0700 |
|---|---|---|
| committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-12 15:50:14 -0700 |
| commit | f514c9c04aeef8b2a90dc1bfc97d7dff833bdcd8 (patch) | |
| tree | e0c9fabd82db0d62a1c0ac540e63c239356dc1d0 /railties/lib/rails/generators/active_model.rb | |
| parent | 33d20ea18474e5c7a14d72fcbafc0c63bf812aba (diff) | |
| download | rails-f514c9c04aeef8b2a90dc1bfc97d7dff833bdcd8.tar.gz rails-f514c9c04aeef8b2a90dc1bfc97d7dff833bdcd8.tar.bz2 rails-f514c9c04aeef8b2a90dc1bfc97d7dff833bdcd8.zip | |
don't mutate the caller's variables
Remove the `options` reader from `Resource` because nobody needs to see
that hash. Also remove mutations on the options hash in
`apply_common_behavior_for` because leaving the side effects in that
method makes it difficult to understand what is going on in the caller.
Diffstat (limited to 'railties/lib/rails/generators/active_model.rb')
0 files changed, 0 insertions, 0 deletions
