diff options
author | Michael Colavita <colavitam@gmail.com> | 2015-07-13 13:48:10 -0400 |
---|---|---|
committer | Michael Colavita <colavitam@gmail.com> | 2015-07-13 13:48:10 -0400 |
commit | 0c8dd2cab6793973384f7320c2cb2b832ec38aff (patch) | |
tree | b670b7c53569e518be44317b7eaa7bd22548fde5 /activerecord/lib/active_record/migration | |
parent | 08e41a043218583d34e34316df82d38e4d7f1b55 (diff) | |
download | rails-0c8dd2cab6793973384f7320c2cb2b832ec38aff.tar.gz rails-0c8dd2cab6793973384f7320c2cb2b832ec38aff.tar.bz2 rails-0c8dd2cab6793973384f7320c2cb2b832ec38aff.zip |
:only and :except are now chained for routing resource(s)
Allow chaining the :only and :except options for routing resource(s).
Previously, the following yielded routes for both show and destroy:
resource :account, :only => [:show, :destroy], :except => :destroy
This now yields only the show action. This chaining can be useful for
passing optional :except options to code that makes use of the :only
option (e.g. for a gem with its own routing methods).
Diffstat (limited to 'activerecord/lib/active_record/migration')
0 files changed, 0 insertions, 0 deletions