Skip to content

Commit

Permalink
Refactored routes.rb.
Browse files Browse the repository at this point in the history
  • Loading branch information
Trey Terrell committed Jun 16, 2015
1 parent 97d611f commit da9bf7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
get 'sets/:set_id', :to => "sets#index", :as => :sets_index
get 'sets/:set_id/:id', :to => "sets#show", :as => :sets
get 'sets/:set_id/facet/:id', :to => "sets#facet"
get 'sets/:set_id/email', :to => "sets#email", :as => :email_sets
get 'sets/:set_id/sms', :to => "sets#sms", :as => :sms_sets
get 'sets/:set_id/citation', :to => "sets#citation", :as => :citation_sets
[:email, :sms, :citation].each do |export_type|
get "sets/:set_id/#{export_type}", :to => "sets##{export_type}", :as => :"#{export_type}_sets"
end
end

0 comments on commit da9bf7a

Please sign in to comment.